next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: if

if -- condition testing

Description

if p then x else y computes p, which must yield the value true or false. If true, then the value of x is provided, else the value of y is provided.

if p then x computes p, which must yield the value true or false. If true, then the value of x is provided, else null is provided.

For the programmer

The object if is a keyword.