Scripting in StreamServe > StreamServe scripting language specifics > Expressions > Variables in numeric expressions

Variables in numeric expressions
You must use the script function Num to assign numeric values to variables in numeric expressions. If you do not, the variables will be treated as strings.
Examples
Example 19
$a = 20;
$b = Num($a) + 30;
Result: $b=50
 
Example 20
$a = 20;
$b = $a + 30;
Result: $b=2030
 
OpenText StreamServe 5.6 Updated: 2013-03-01