%set() Function

Top  Previous  Next

%set() function is used to set a value to a variable. The variable can be a simple page variable or a system parameter with prefix "s:".

Syntax:

%set(variable, expression, value-type)

 

value-type parameter is significant if variable is a system parameter.

Value-types:

"1" : Normal (Default)

"2" : Encrypted

 

Examples:

%set(color,'blue')

 

%set(title,'You have chosen ' + color)

 

%set(count, count + 1)

 

%set(s:page-of-Element1,PAGE_NAME)

System parameter "page-of-Element1" will be created in "sysinfo.xml" file