11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Caché</strong> <strong>ObjectScript</strong> Commands• $ZTIME function• $HOROLOG special variable• $ZTIMESTAMP special variableIFEvaluates an expression, then selects which block of code to execute based on the truth valueof the expression.IF expression1 {. . .}ELSEIF expression2 {. . .}ELSE {. . .}orI expression1 {. . .}ELSEIF expression2 {. . .}ELSE {. . .}Argumentsexpression1expression2A test condition for the IF clause. A single condition or acomma-separated list of conditions.A test condition for an ELSEIF clause. A single condition or acomma-separated list of conditions.DescriptionThis page describes the IF, ELSEIF, and ELSE command keywords, all of which are consideredto be component clauses of the IF command. An IF command consist of one IFclause, followed by any number of ELSEIF clauses, followed by one ELSE clause. The54 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!