POSITION:028,114
COLOUR:STANDARD
TEXT:00,Euphoria also has a "not" logical operator that gives you the opposite
TEXT:16,value of a relational expression. Here's a program example that best
TEXT:16,demonstrates this:
COLOUR:EUPHORIA
TEXT:32,atom opposite, result
TEXT:32,result = 15 < 20
TEXT:16,opposite = not result
COLOUR:STANDARD
TEXT:32,First, "15 < 20" is evaluated, which has 1 (true) stored in variable
TEXT:16,"result", Next, "not" reverses the value in "result" to 0 (false),
TEXT:16,so the variable "opposite" is assigned a value of 0. In short, if the
TEXT:16,expression beside a "not" works out to be false, "not" reverses it to
TEXT:16,true. If the expression works out to be true, "not" reverses it to false.
TEXT:16,"not" gives you the opposite value of the outcome of an expression.

