docs.roxen.comBack to normal mode
DocsRoxenWebServer 6.1Web Developer ManualVariable Tags
Copyright © 2021, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com

<elements/>

Provided by module: Tags: RXML tags

Returns the number of elements in a variable. If the variable isn't of a type which contains several elements (includes strings), 1 is returned. That makes it consistent with variable indexing, e.g. var.foo.1 takes the first element in var.foo if it's an array, and if it isn't then it's the same as var.foo.

See also the <strlen> tag for use with strings.


Attributes

variable="string"

The name of the variable.


scope="string"

The name of the scope, unless given in the variable attribute.