Difference between revisions of "Array contains"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
Where: | Where: | ||
− | :'''ArrayName''' - an expression specifying the name of | + | :'''ArrayName''' - an expression specifying the name of a numerical/string/boolean array. |
− | :'''Value''' - a numerical/string/ | + | :'''Value''' - a numerical/string/boolean expression specifying the value to search. |
==Example== | ==Example== | ||
Assign a true/false value, indicating that value 4 is contained in the numeric array Array1, to Condition1 variable: | Assign a true/false value, indicating that value 4 is contained in the numeric array Array1, to Condition1 variable: | ||
− | <syntaxhighlight>Condition1=Array_Contains(Array1,4);</syntaxhighlight> | + | <syntaxhighlight>Condition1 = Array_Contains(Array1,4);</syntaxhighlight> |
− | [[Category: | + | [[Category:Dynamic Arrays]] |
Latest revision as of 13:35, 10 April 2017
Will return True/False value depending on whether specific element is contained in the one-dimensional array, or not.
Usage
Array_Contains(ArrayName,Value)
Where:
- ArrayName - an expression specifying the name of a numerical/string/boolean array.
- Value - a numerical/string/boolean expression specifying the value to search.
Example
Assign a true/false value, indicating that value 4 is contained in the numeric array Array1, to Condition1 variable:
Condition1 = Array_Contains(Array1,4);