boolArray function

Syntax

bool[] boolArray()

bool[] boolArray(values)

Parameters

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

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.