|
If
If[condition, t, f] gives t if condition evaluates to True, and f if it evaluates to False.
If[condition, t, f, u] gives u if condition evaluates to neither True nor False.
If evaluates only the argument determined by the value of the condition.
If[condition, t, f] is left unevaluated if condition evaluates to neither True nor False.
If[condition, t] gives Null if condition evaluates to False.
See Section 1.5.6 and Section 2.6.8.
See also: Switch, Which, Condition, DiracDelta.
New in Version 1.
Further Examples
|