Array contains: Difference between revisions
From MultiCharts
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Will return True/False value depending on whether specific element is contained in the one-dimensional array, or not. | |||
==Usage== | |||
<syntaxhighlight>Array_Contains(ArrayName,Value)</syntaxhighlight> | |||
Where: | |||
:'''ArrayName''' - an expression specifying the name of an numerical/string/bool array. | |||
:'''Value''' - a numerical/string/bool 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: | |||
<syntaxhighlight>Condition1=Array_Contains(Array1,4);</syntaxhighlight> | |||
[[Category:Portfolio Money Management]] | [[Category:Portfolio Money Management]] |
Revision as of 13:25, 8 November 2016
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 an numerical/string/bool array.
- Value - a numerical/string/bool 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);