boolArray function
Syntax
bool[] boolArray()
bool[] boolArray(values)
Parameters
- values (float[], bool[], string[])
Values to convert.
Returns
If values is not given, an empty bool array is returned.
If values is given, a bool array is returned that contains the elements of values converted to the corresponding bool values.
Related
- float function
- bool function
- str function
- floatArray function
- stringArray function
- array initialization function
Examples
boolArray([1, 0, 1, 20]) # result = [true,false,true,true] boolArray(["true", "1", "0", "f", "false", "schwiizer nati"]) # result = [true,true,false,false,false,true] boolArray([true, false, true]) # result = [true,false,true]
Copyright ©2008-2024 Esri R&D Center Zurich. All rights reserved.