FutureProg functions
ifnull
ifnull overload 1
CollectionItem ifnull(CollectionItem item, CollectionItem fallback)
Available in
- computer function
- computer program
- standard futureprog
This function accepts an item of a broad variety of types, and tests to see if it is currently null. If it is not null, it returns the item you supplied in the first parameter. If it is null, it returns the item specified in the second parameter.
| Parameter | Type | Description |
|---|---|---|
item |
CollectionItem |
The item that you want to test to see if it is null |
fallback |
CollectionItem |
The item you want to return if the first item is null |