Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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.

© 2015 Microsoft