src/swipl-devel/packages/xpce/man/refmanual/md/or.md

class or {#class-or}

Class or defines a logical or for its associated statements. An or is not just binary but can have any number of arguments.

When executed, or will execute its argument code objects starting from the first. It stops with success as soon as one of the arguments succeeds or returns failure if no argument succeed. An or without arguments simply fails.

See also class if, class and and class not.

@see topic Conditions

Instance variables {#class-or-instvars}

Send methods {#class-or-send}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.