Published on : August 07, 2020
Title : if.and
Purpose : If condition with AND to check two condition at time
Syntax : [if.equla lhs=’Variable_Name’ rhs=’200′][/if.equal]
[if.and c.not_empty=’Variable_Name’]
//** Do something if variable is eqaul to ‘200’ AND it’s contain value **//
[/if.and]
Input Parameters : c.condition: Define second condition.
Return Value : It does not return anything
Example 1 :
Code :
[template.set count = 200/]
[if.equal lhs={template.count} rhs=200][/if.equal]
[if.and c.not_empty]
    Count variable is equal and not empty
[/if.and]
Output : Count variable is equal to 200 and not empty.
Description : In the example, count variable is declered and there is store value 200. As the variable is not empty, then first equal condition will get satisfied and second codition not empty also get satisfied the logic inside will get executed.