Published on : August 19, 2020
Title : if.not_arr
Purpose : The Condition to check given variable is not an array.
Syntax : [if.not_arr variable_name]
//** Do something if given variable name is not an array **//
[/if.not_arr]
Input Parameters :
variable_name : The variable name which we want to check that given variable is not an array
Return Value : It return boolean value (true/false)
Example 1 :
Code : [template.set_array customer_details
lapp_id=71
customer_id=7
level_id=1 /]
[/template.set_array]
[if.not_arr template.customer_details]
Given variable is not an array.
[/if.not_arr]
Output :
Description : In the example, define variable customer_details is an array format, then condition will not get satisfied hence logic inside will not get executed.
Example 2 :
Code : [template.value_1 = “200”/]
[if.not_arr template.value_1]
Given variable is not an array.
[/if.not_arr]
Output : Given variable is not an array.
Description : In the example, define variable value 1 is not an array format, then the condition will get satisfied hence logic inside will get executed.