[if.not_int Variable_Name]
//** Do something **//
[/if.not_int]
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="hello"/]
[if.not_inttemplate.var_num]
[template.setstr="var_num is not int"/]
[/if.not_int]
Output
:
in var_num is number then set str as “var_num is not int”
Description
:
In the example, var_num variable is declared and there is store value hello. As the variable is not int, then if not_int condition will get satisfied and the logic inside will get executed.