|
|
|
|
<Array>.AllTrue (Function) In french: <Tableau>.TousVrai Returns True if all the elements of an array are True.
arrProduct is array of Product // Return True if no product is out of stock IF arrProduct.AllTrue(AProduct => AProduct.Stock > 0) THEN // Everything is OK ELSE // Alert END
Syntax
<Result> = <Source>.AllTrue([<Operation>])
<Result>: Boolean - True if all the elements of the specified array are set to True,
- False otherwise.
<Source>: Array variable Name of Array variable to check. <Operation>: WLanguage procedure WLanguage procedure to run: - If this parameter is not specified, <Source> must correspond to an array of booleans.
- If this parameter is specified, the WLanguage procedure is called for each element of the array and must return a boolean.
This parameter can correspond to a local or global WLanguage procedure, an internal procedure or a lambda procedure. Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|