docs.roxen.comView this page in a printer friendly mode
DocsRoxenWebServer 6.1Web Developer ManualVariable Tags
Copyright  2018, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com
 DEMO  DOCS  PIKE
 COMMUNITY  DOWNLOAD
www.roxen.com



<append>
<copy-scope>
<dec>
<define>
<elements>
<inc>
<insert>
<insert cached-href>
<insert file>
<insert href>
<insert realfile>
<insert scopes>
<insert variable>
<insert variables>
<json-format>
<json-parse>
<range>
<recaptcha-site-key>
<roxen-automatic-charset-variable>
<scope>
<set>
<sprintf>
<sscanf>
<undefine>
<unset>
<use>
<value>
<vform>

<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.