Arbortext Command Language > Using the Arbortext Command Language > Array Membership
  
Array Membership
 
in
$i in $a returns a value of 1 if $a [$i] exists, otherwise it returns 0 (zero). (Does not have the side effect of creating $a [$i].) Numeric index sample: 25 in myarray tests for presence of the 25th index of the array myarray. Associative index sample: 'candy' in price tests for the presence of the candy index in the array price.
The following operators are numeric and require numeric operands:
+, -, *, /, &, ^, |, <<, >>, %, ~, ++, and ––
Related Topics
Functions as expressions and commands
Using expressions
Logical expressions
Operands