if.bool
/
Conditionals /
if.bool
By Amit Singh. Posted on
| Title |
: |
if.bool |
| Purpose |
: |
Used to determine whether the given variable type is a boolean. |
| Syntax |
: |
|
|
[if.bool "variable_name"] //** your code to execute when true **// [/if.bool] |
|
| Input Parameters |
: |
variable name: (int) (Required) variable to check. |
| Return Value |
: |
N/A |
| Example 1 |
: |
| Code |
: |
|
|
[if.bool {template.arg}] Variable is of Boolean Type [/if.bool] |
|
| Output |
: |
Variable is of Boolean Type |
| Description |
: |
The above example code will output string if the template.arg is type of Boolean. Otherwise it will be empty. |
|
Last Modified By abhishek.