Published on : August 21, 2020
Title : if.not_bool
Purpose : The Condition to check given variable data type is not a Boolean type.
Syntax : [if.not_bool variable_name]
//** Do something if given variable is not a Boolean type **//
[/if.not_bool]
Input Parameters :
variable_name : The variable name which we want to check that given variable is not a Boolean type
Return Value : It return boolean value (true/false)
Example 1 :
Code : [template.isLive = True /]
[if.not_bool template.isLive]
Given variable is not a Boolean type.
[/if.not_bool]
Output :
Description : In the example, define variable isLive is stored value is a type Boolean, then condition will not get satisfied hence logic inside will not get executed.
Example 2 :
Code : [template.value_1 = “ABC”/]
[if.not_bool template.value_1]
Given variable is not a Boolean type.
[/if.not_bool]
Output : Given variable is not a Boolean 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.