webCOMAND

#EVAL

Evaluate a variable or string containing cTemplate code.

Prototype

#EVAL($code)

Parameters

  • code - Variable or string containing cTemplate code to evaluate.

Example

#/ Output: John Smith has 2 friends
#ASSIGN($code, 'John Smith has ##CALC(1+1) friends.')
#EVAL($code)

Related

#PERL, #PHP