Tag Link | [If_Empty] | Category | Conditional |
---|---|---|---|
Type | Substitution | Source Available | Yes |
Support | Preferred | Version | 8.0 |
Change | Unchanged | Data Source | Any |
Output Type | None | Security | None |
Implementation | LDML | Sets | Lasso 8.5, Lasso 8.0 |
[If_Empty] requires two parameters. If the first parameter is not empty (i.e. is not equal to the empty string) then it is returned, otherwise the second parameter is returned. This tag allows a default value (the second parameter) to be returned if the main value (the first parameter) is empty.
Note: The comparison is performed using == so any values that equal the empty string (0, null, etc.) will trigger the default value.
[If_Empty: Value, Default]
Required Parameters | |
---|---|
Value | The value to be checked. If is not |
Value | The value to be returned if the first value is empty. |
See the Lasso 8 Language Guide for examples of how to use this tag.
Substitution | ||
---|---|---|
| ||
Container | ||
|
| |
Process | ||
|
|
|