List.ContainsList.Contains
構文Syntax
List.Contains(list as list, value as any, optional equationCriteria as any) as logical
バージョン情報About
リスト list
に値 value
が含まれているかどうかを示します。Indicates whether the list list
contains the value value
. 値がリストに存在する場合は true、存在しない場合は false を返します。Returns true if value is found in the list, false otherwise. 省略可能な式条件値 equationCriteria
を指定して、等値テストを制御できます。An optional equation criteria value, equationCriteria
, can be specified to control equality testing.
例 1Example 1
リスト {1, 2, 3, 4, 5} に 3 が含まれているかどうかを調べます。Find if the list {1, 2, 3, 4, 5} contains 3.
List.Contains({1, 2, 3, 4, 5}, 3)
true
例 2Example 2
リスト {1, 2, 3, 4, 5} に 6 が含まれているかどうかを調べます。Find if the list {1, 2, 3, 4, 5} contains 6.
List.Contains({1, 2, 3, 4, 5}, 6)
false