MATHEMATICA FEATURED EXAMPLE
Add Messages to Functions
You can set your own custom functions to issue messages where appropriate.
Define a function to issue a message and return unevaluated upon an error, which in this case occurs when the argument is not greater than or equal to zero:
| In[11]:= |
| In[12]:= |
| In[13]:= |
| Out[13]= |
