ifValid# swordfish.function.ifValid()# Determine whether X is valid. If it is valid, the value of X is returned; if it is null, the value of Y is returned. 参数: X (Constant) -- A scalar/pair/vector/matrix. Y (Constant) -- A scalar/pair/vector/matrix. X and Y must have the same data type.