RAD function: nullsub

A RAD function that substitutes a null value with the second value specified.

Function

nullsub

Format

nullsub(value1,value2)

Where the value2 variable is the value to return if value1 is null.

Examples

nullsub(1,2) returns 1.

nullsub(NULL,2) returns 2.

$a=NULL

$a=nullsub($a,"test") returns test.