boolean abstract method

bool boolean(
  1. String key
)

Returns the value for the given key as a bool.

Returns a default value (integer: 0, double: 0.0, boolean: false) if the value is not a of the expected typ, is null or does not exist for the given key.

Implementation

bool boolean(String key);