[if.not_obj Variable_Name]
//** Do something **//
[/if.not_obj]
Input Parameters
:
variable which needs to be check.
Return Value
:
It does not return anything
Example
:
Code
:
XHTML
1
2
3
4
[template.setvarx="hello world"/]
[if.not_objtemplate.varx]
[template.setstr="varx is not object"/]
[/if.not_obj]
Output
:
if varx is not object then set str as “varx is not object”
Description
:
In the example, varx variable is declared and assigned with value. As the variable is not object, then if not_obj condition will get satisfied and the logic inside will get executed.