AND: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
JefD (talk | contribs)
No edit summary
Jeffm (talk | contribs)
No edit summary
Line 3: Line 3:
A logical operator used to evaluate multiple boolean expressions. If all of the booleans connected by [[AND]]'s are true, the [[IF]] statement itself is true the enclosed commands will be executed. Otherwise the [[IF]] statement is false, and control "falls through" to its matching [[END]] statement, or its optional [[ELSE]] statement.
A logical operator used to evaluate multiple boolean expressions. If all of the booleans connected by [[AND]]'s are true, the [[IF]] statement itself is true the enclosed commands will be executed. Otherwise the [[IF]] statement is false, and control "falls through" to its matching [[END]] statement, or its optional [[ELSE]] statement.


:[[IF]] [[MultipleParts?]] AND [[AllToolsOnePart?]]
:[[IF]] [[MultipleParts]]? AND [[AllToolsOnePart]]?


::{commands executed only if aall are true...}
::{commands executed only if aall are true...}

Revision as of 17:03, 20 February 2015

AND

A logical operator used to evaluate multiple boolean expressions. If all of the booleans connected by AND's are true, the IF statement itself is true the enclosed commands will be executed. Otherwise the IF statement is false, and control "falls through" to its matching END statement, or its optional ELSE statement.

IF MultipleParts? AND AllToolsOnePart?
{commands executed only if aall are true...}
END