PickBASIC / FlashBASIC
compare statement
.mdThe compare statement compares two dynamic
arrays.
Syntax
compare str.exp1 to str.exp2{present var1} {missing var2}
Parameter(s)
| str.exp1 | String whose elements are to be compared with str.exp2. |
| str.exp2 | String whose elements are to be compared with str.exp1. |
| present var1 | At completion, contains a list of elements that exist in str.exp1 and in str.exp2. |
| missing var2 | At completion, contains a list of elements that exist in str.exp1 but do not exist in str.exp2. |
Description
The compare statement scans through each element in str.exp1 to verify if that element also exists in str.exp2. At completion, var1 contains a list of elements that exist in str.exp1 and in str.exp2. At completion, var2 contains a list of elements that exist in str.exp1 but do not exist in str.exp2.
Example(s)
See also
Referenced by
1 topic mentions compare statement in its description.