Developer's Manual  Macro Language  $var()

$var()

Returns a value of a global variable.


{$var(string value_name)[string text1][|string text2]}
Example
{$var(suCONF,supra)text1|text2}  // prints supra directory name and adds text1 at the end of the name

You can define your own variables in .htsupra file and refer to their values using the {$var()} macro.

If SiteSupra found requested page, it adds optional parameter text1 to the end of the property value. If SiteSupra failed to find the page, it shows parameter text2.

note Macro commands returns only string values and cannot return arrays. To refer to an array value separate the array name and its elements by a comma as shown in the example above.
Please login to add comments.