|
Navigation: Click-Script Guide > Expressions > String Expressions |
|
String expressions are very simple to create. Every set of characters are considered string expression.
If you want to include a variable inside the string, just type the variable's inside quotes.
Price: U$ %Price% |
If the value of the variable %Price% is 150, the value of the string expression below will be "Price: U$ 150".
To include the value of an array's item, just include the variable in the string expression using the following syntax:
%VariableName[Index]% |
where:
VariableName |
The name of the array you want to access. |
Index |
A valid numeric expression that results the item's index you want to access. |
City %i% = %Cities[%i%] |
Supposing the value of variable %i% is 1 and the item 1 of array %Cities% is Paris, the value of the string expression above will be "City 1 = Paris".
First letter = %Country[1]% |
The string variables are also considered array of characters, so, if you have a variable named %Country% with the value "Portugal", the value of the string expression above will be "First letter = P".