Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
If Operator (Solver Foundation)
Collapse the table of content
Expand the table of content

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:
© 2015 Microsoft