Export (0) Print
Expand All
Expand Minimize

If Operator (Solver Foundation)

Solver Foundation 3.0

Returns the second or third argument, depending on whether the condition is true.

If[cond, arg1, arg2]

If[x > 0, y, z]

This operator returns the second argument if the cond condition is true; otherwise, it returns the third argument.

The second and third arguments must be compatible.

Show:
© 2014 Microsoft