Published on : August 19, 2020
Title : if.not_num
Purpose : The Condition to check given variable data type is not a Numeric type.
Syntax : [if.not_num variable_name]
//** Do something if given variable is not a Numeric type **//
[/if.not_num]
Input Parameters :
variable_name : The variable name which we want to check that given variable is not a Numeric type
Return Value : It return boolean value (true/false)
Example 1 :
Code : [template.customer_age = 200 /]
[if.not_num template.customer_age]
Given variable is not a Numeric type.
[/if.not_num]
Output :
Description : In the example, define variable customer_age is stored value is a type Numeric, then condition will not get satisfied hence logic inside will not get executed.
Example 2 :
Code : [template.value_1 = “ABC”/]
[if.not_num template.value_1]
Given variable is not a Numeric type.
[/if.not_num]
Output : Given variable is not a Numeric type.
Description : In the example, define variable value 1 stored value is a string type , then the condition will get satisfied hence logic inside will get executed.