Function: if_null

Usage : @if_null ( Variable condition, instruction if_true[, inctruction if_false] ) This is a simple condition. It has been implemented in Cws 1.0 because there are no other conditions, except if_not_null. Note that this function returns a value, so it can be used like on line 4
<<#cws
$Active = "yes"
@if_null($Active, @print("Not yet activated"), @print("Active"))
$Answer = @if_null($NotActive, @print("Not Active"))
@print($Answer)
#>
Result: Active
Not Active

See also

if_not_null