14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Appendix A JSL Syntax Reference 587<br />

Conditional and Logical Functions<br />

See Also<br />

The Conditional Expressions and Loops section of the <strong>Scripting</strong> <strong>Guide</strong>.<br />

AndMZ(a, b)<br />

AndV3(a, b)<br />

a:&b<br />

Description<br />

Logical And with JMP 3 behavior, which treats missing values as 0.<br />

Returns<br />

1 (true) if both a and b are true.<br />

0 (false) if either a or b is false or if both a and b are false.<br />

0 (false) if either a or b is a missing value or if both a and b are missing values.<br />

Arguments<br />

Two or more variables or expressions.<br />

Notes<br />

More than two arguments can be strung together. a:&b returns 1 (true) only if all arguments evaluate to<br />

true. When opening a JMP 3 data table, this function is automatically used for any And function.<br />

See Also<br />

The Conditional Expressions and Loops section of the <strong>Scripting</strong> <strong>Guide</strong>.<br />

Break()<br />

Description<br />

Stops execution of a loop completely and continues to the statement following the loop.<br />

Note<br />

Break works with For and While loops, and also with For Each Row.<br />

Choose(expr, r1, r2, r3, ..., rElse)<br />

Description<br />

Evaluates expr. If the value of expr is 1, r1 is returned; if 2, the value of r2 is returned, and so on. If<br />

no matches are found, the last argument (rElse) is returned.<br />

Returns<br />

The value whose index in the list of parameters matches expr, or the value of the last parameter.<br />

Arguments<br />

expr an expression or a value.<br />

r1, r2, r3, ... an expression or a value.<br />

Continue()<br />

Description<br />

Ends the current iteration of a loop and begins the loop at the next iteration.

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

Saved successfully!

Ooh no, something went wrong!