Function Name |
Default If Null | ||||
Category |
Type | ||||
Icon |
![]() |
||||
Description |
If the Value input contains items then they are passed to the Output. However if the Value input is empty, then the items from Fallback are passed to the Output. |
||||
Inputs |
|
||||
Outputs |
|
||||
Properties |
|
Allows a default value or sequence of values to be used in the event that the value read is null or an empty sequence.
Typically used when dealing with data sources that contain a value that is optional (i.e. a database value that is nullable). The component allows a default value to be used, so instead of the source value returning null (an empty sequence) it could be made to return a default value.
i.e. If the HomePhone field in the database is null the string value '[UNKNOWN]' will be used instead.
If the input Value is a primitive value then provided to Fallback must be the same type or castable to the type used in Value.
If the input Value is a complex node then the Fallback input must be of the same type, i.e. if Value is an Address node, then Fallback must also be an Address node.
The type of the Output mirrors the type of the input Value.