overview
The following example shows how to use the logical AND (&) and OR (|) operators with the Select Where message to select rows that meet multiple conditions.
procedure
In a JMP session, click the File menu and select New > JSL Script (or Script in JMP 17 and earlier). Copy the following script and paste it into the script window. To run the example script, click the Edit menu and select Run Script.
/* サンプルのデータテーブルを開きます。 */
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );
/* 年齢が13より大きく、かつ、身長(インチ)が65より小さい学生の行を選択します。 */
dt << Select Where( :age > 13 & :height < 65 );
Wait( 2 ); // この行はデモンストレーション目的です。
dt << Clear Select; // この行はデモンストレーション目的です。
/* 年齢が12または14の学生の行を選択します。 */
dt << Select Where( :age == 12 | :age == 14 );
Additional Documentation
More information about the JMP scripting language is available in the Scripting Guide , available in the online help .
Note: This FAQ is based on the following JMP Note:
JMP Note 575404 - How to select rows based upon multiple conditions using a JMP script