ELSEIF: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
Dannym (talk | contribs)
No edit summary
Dannym (talk | contribs)
No edit summary
 
Line 1: Line 1:
'''ELSEIF'''
===ELSEIF===


An optional logical "branch," used within an [[IF]]-[[END]] construct. If the [[IF]] statement is true, commands above the ELSEIF are executed and those below are skipped until a matching [[END]] is found. Otherwise, commands above the ELSEIF are skipped and those below are executed.
An optional logical "branch," used within an [[IF]]-[[END]] construct. If the [[IF]] statement is true, commands above the ELSEIF are executed and those below are skipped until a matching [[END]] is found. Otherwise, commands above the ELSEIF are skipped and those below are executed.

Latest revision as of 21:34, 24 January 2014

ELSEIF

An optional logical "branch," used within an IF-END construct. If the IF statement is true, commands above the ELSEIF are executed and those below are skipped until a matching END is found. Otherwise, commands above the ELSEIF are skipped and those below are executed.

IF MultipleParts?
{commands executed if true...}
ELSEIF NOT MultipleParts?
{commands executed if IF condition is false and ELSEIF condition is true...}
END

NOTE

This language feature requires Compost4 and GibbsCAM v11.