isNull

Syntax

  • bool isNull(value)
  • bool[] isNull(values)

Parameters

  1. valuefloat
  2. valuesfloat[]

Returns

true if value is set to the internal special float or string value which represent NULL or “missing value”; false otherwise.

For floats, NULL is encoded as nan. For strings, NULL is encoded as “\ue000”. 

For an array values a new array is returned containing the result of each element.

Examples

isNull("CityEngine")
# result = false
isNull("\ue000")
# result = true
isNull(ln(-1))
# result = true
isNull(["CityEngine", "\ue000"])
# result = [false, true]

Was this article helpful?