LassoScript Utility
Basics Browse Detail

[If_Null]

Tag Link [If_Null] 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

Description

[If_Null] requires two parameters. If the first parameter is not equal to null 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 equal to null.

Note: The comparison is performed using === so only actual null values will trigger the default value.

Syntax

[If_Null: Value, Default]

Parameters

Required Parameters
Value The value to be checked. If is not-null then this value will be returned.
Value The value to be returned if the first value is null.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.

Related Tags

Category Tags