[if.int Variable_Name]
//** Do something **//
[/if.num]
Input Parameters
:
variable which needs to be check.
Return Value
:
It does not return anything
Example
:
Code
:
XHTML
1
2
3
4
[template.setvar_num=200/]
[if.inttemplate.var_num]
[template.setstr="var_num is int"/]
[/if.int]
Output
:
in var_num is number then set str as “var_num is int”
Description
:
In the example, var_num variable is declared and there is store value 200. As the variable is number, then if num condition will get satisfied and the logic inside will get executed.