|
The AND operator can be abbreviated with a double-ampersand ( &&). Use the double-ampersand to separate the two arguments (for example, to specify V1 AND 3, you can simply type V1&&3).
|
TEMP = 1 AND 8 or TEMP = 1 && 8
Creates a new column named TEMP containing the value one (any non-zero number is treated as a one).
|
Creates a new column named TEMP with the value one for each non-zero value in column V1 and the value zero for each zero in column V1.
|
Creates a new column named TEMP, where each value is the row value of column V1 logically AND-ed with the corresponding row value of column V2.
|
Creates three new columns named TEMP, VX, and VY. The column TEMP contains the values in V1 logically AND-ed with the corresponding row values of column V4. The column VX contains the logically AND-ed values from columns V2 and V5. The column VY contains the logically AND-ed values from columns V3 and V6.
|
TEMP = V1[10:20] && V2 or TEMP = V1[10:20] && V2[1:11]
Creates a new column named TEMP, where the first 11 cells contain the logically AND-ed result of the values in rows 10-20 of column V1 by the values in rows 1-11 of column V2. The other cells in TEMP are empty.
|
Copyright IBM Corporation 2013. All Rights Reserved.
|