Published on : July 24, 2020
Title : if.not_empty
Purpose : To check the variable contains value or not
Syntax : [if.not_emplty template.variable_name]
//** Do something if variable is empty **//
[/if.not_empty]
Input Parameters :
template.variable_name : Variable name to check it is contain value or not./td>
Return Value : It does not return anything
Example 1 :
Code : [template.set count=”123″/]
[if.not_empty template.count]
    Variable is not empty.
[/if.not_empty]
Output : Variable is not empty.
Description : In the example, variable count contains values, the condition will get satisfied and the logic inside the condition will get executed.
Example 2 :
Code : [template.set count=””/]
[if.not_empty template.count]
    Variable is not empty.
[/if.not_empty]
Output :
Description : In the example, variable count not contains any values, the condition will not get satisfied and the logic inside the condition will not get executed.