Macaulay2 » Documentation
Packages » Macaulay2Doc > The Macaulay2 language > operators > or
next | previous | forward | backward | up | index | toc

or -- disjunction


t or u -- returns true if t is true or u is true.

If t is true, then the code in u is not evaluated.

See also

Ways to use symbol or :

For the programmer

The object or is a keyword.

This operator may be used as a binary operator in an expression like x or y. The user may install binary methods for handling such expressions with code such as

         X  or  Y := (x,y) -> ...

where X is the class of x and Y is the class of y.