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.

© 2016 Microsoft