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