Tests if a value is equal to one of the given ones
#include "Logics and Math.au3" _InList( $nValue, $vValue1 [, $nValue2 [, $nValue3 [, $nValue4 [, $nValue5 [, $nValue6 [, $nValue7 [, $nValue8 [, $nValue9 [, $nValue10 ]]]]]]]]] ) |
$nValue | Number or string to test |
$vValue1 | Number or string to compare to or array with numbers or strings to compare to |
$nValue2 to iValue10 = Optional | Number or string to compare to |
boolean value | True = Value is equal to one of the given once |
_InList(1, 1, 2, 3) ; True
_InList(1, 0, 2, 3) ; False
Local $Array = [4, 5, 6, 7]
_InList(6, $Array) ; True
_InList("d", "a", "b", "c") ; False