<@VARNAMES SCOPE=scope [{array attributes}]>
Returns an array containing all variable names for a given scope.
For more details on scope, see Chapter 8 in the User's Guide. For an explanation of the scoping rules, see <@VAR>.
The result array has one column and n rows where n is the number of variables in the specified scope.
There are array-returning attributes that can be used to specify prefixes and suffixes for the returned array, rows within the array, and columns within the rows. They are described in the section Array-to-Text Conversion Attributes. By default, the returned array is formatted as an HTML table.
The following returns all variable names for the current user scope using the default array formatting:
<@ASSIGN NAME="myvarnames" VALUE="<@VARNAMES SCOPE='user'>">
<@VAR NAME="myvarnames">