Published on : August 05, 2020
Title : if.empty
Purpose : To check variable is empty or not
Syntax : [if.empty template.variable_name]
//** Do something if variable not contain any value **//
[/if.empty]
Input Parameters :
Variable_Name : Define variable name which we want to check.
Return Value : It does not return anything
Example 1 :
Code : [template.count = “”/]
[if.empty template.count]
    Count variable is empty.
[/if.empty]
Output : Count variable is empty.
Description : In the example, count variable is declered only there is not store any value. As the variable is empty, the condition will get satisfied and the logic inside the condition will get executed.