Difference between revisions of "Ar Find"
Clarirified examples
imported>Odessa (modified example for clarity) |
imported>Odessa (Clarirified examples) |
||
Line 13: | Line 13: | ||
|Type = range}}}} | |Type = range}}}} | ||
==Example== | ==Example== | ||
A numeric indexed array ("array" or "map"): | |||
<pre> | |||
if eval (Ar_Find SomeValue, SomeArray) != Ar_BadNumericIndex | |||
; then SomeValue is an element in SomeArray | |||
endif | |||
</pre> | |||
A string indexed array ("stringmap"): | |||
<pre> | |||
if eval (Ar_Find SomeValue, MyStringMap) != Ar_BadStringIndex | |||
; then SomeValue is an element in MyStringMap | |||
endif | |||
</pre> | |||
Another numeric example, with extra context: | |||
<pre> | <pre> | ||
array_var aBeatles | array_var aBeatles | ||
Line 27: | Line 42: | ||
</pre> | </pre> | ||
==See Also== | ==See Also== | ||
*[[Array Variables]] | *[[Array Variables]] |