Contents | Prev | Next | Index


Logical Operators

OR logical disjunction p OR q == "if p then TRUE, else q end"
AND logical conjunction p AND q == "if p then q, else FALSE end"
NOT negation NOT p == "not p"
XOR exclusive or p XOR q == "if p and not q then TRUE, else not p and q"

These operators can be applied to BOOLEAN operands only and yield a BOOLEAN result.


Contents | Prev | Next | Index

Canterbury Pascal for JVM  (Last documentation update Jun 9, 2000)
Copyright © 1998 Mill Hill & Canterbury Corporation, Ltd. All rights reserved
Please send any comments or corrections to mhc@webcom.com