ChaosPro Home
Introduction
What's New
Palettes
Using Formulas
Layering in ChaosPro
Rendering
Fractal Parameter Windows
Windows
Menu
3D Transformations
Animations
Formula Compiler
Writing Formulas
Language Reference
Introduction
Basic Syntax
Datatypes
Constants
Variables
Expressions
Operators
Precedence
Arithmetic Operators
Assignment Operator
Comparison Operator
Logical Operators
!
&&
||
Functions
Control Structures
Compiler Directives
Functions
Interface to ChaosPro
Special Features, Notes...
Compatibility
Fractal Type Reference
Tutorials
Appendix
CHAOSPRO 4.0
Release 4.0
.

Logical Operators

 Example   Name   Result 
 ! a   Not   True if a is not true. 
 a && b   And   True if both a and b are true. 
 a || b   Or   True if either a or b is true. 

ChaosPro currently does not use lazy (aka short-circuit) evaluation for the AND/OR logical operators:
If the expression on the left side of OR evaluates to TRUE, then ChaosPro will evaluate the expression on the right side of OR although this is not necessary because the result of this operation will not change any more.
A future version of ChaosPro may have a short-circuit evaluation for the AND/OR logical operators.