Documentation Language: Swift

Method

bool(named:)

Returns a Boolean interpretation of a named attribute.

func bool(named n: String) -> Bool

Parameters

n

The local attribute name to look up.

Return Value

true when the attribute exists and contains a non-zero integer.

Discussion

The attribute is treated as true only when it exists and can be parsed as a non-zero integer.