Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » conditional execution » if
next | previous | forward | backward | up | index | toc

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.


The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/Macaulay2Doc/ov_language.m2:641:0.