if.not_whitespace
/
Conditionals /
if.not_whitespace
By Amit Singh. Posted on
Title |
: |
if.not_whitespace |
Purpose |
: |
The if…not_whitespace statement executes some code if a condition is true |
Syntax |
: |
|
[if.not_whitespace module.space] This will execute [/if.not_whitespace] |
|
Input Parameters |
: |
Variable with value to check that it does not contains only spaces |
Return Value |
: |
Will execute the block of code present inside the not_whitespace if value contains at-least any one character. |
Example 1 |
: |
Code |
: |
|
[module.set space=" . " /] [if.not_whitespace module.space] This will execute [/if.not_whitespace] -------------------------------------------- [module.set space=" " /] //** SPACE and NEW LINE **// [if.not_whitespace module.space] not_whitespace [/if.not_whitespace] |
|
Output |
: |
not_whitespace |
Description |
: |
It will execute the block of code if the variable is not blank or contains at-least any one character, new line etc.! |
|
Last Modified By Praveen Gupta.