ifNull#

swordfish.function.ifNull()#

Determine whether X is null. If it is null, return X; if not, return Y.

Parameters:
  • X (Constant) – A scalar/pair/vector/matrix.

  • Y (Constant) – A scalar/pair/vector/matrix. X and Y must have the same data type.