If
Usage
Notes
Further Examples
The test gives False, so y is returned.
In[1]:=
|
Out[1]=
|
The test gives neither True nor False, so neither branch is evaluated.
In[2]:=
|
Out[2]=
|
If there is a fourth argument to If, it is used when the test does not yield True or False.
In[3]:=
|
Out[3]=
|
|