#CALC
Syntax
#CALC(Expression)
Parameters
- Expression - A cScript expression to be evaluated and output.
Description
Process a Perl or PHP expression and output the returned result.
This statement produces output.
Related
#ASSIGN is similar to #CALC, except instead of outputting the result, it sets a variable to the result.
Example
Here we will increase the month from December to February.
#ASSIGN($A,1)
#ASSIGN($B,2)
$A + $B = #CALC($A + $B)
Result
1 + 2 = 3