isBoolean

fun isBoolean(value: String?)(source)

Check if the given value is a boolean

Accepts:

  • true true

  • false false

  • 1 true

  • 0 false

  • yes true

  • no false

  • y true

  • n false

Since

0.1.0

Parameters

value

The value to check

Throws

If the value is not a boolean


Check if the given value is a boolean

Accepts:

  • true true

  • false false

  • 1 true

  • 0 false

  • yes true

  • no false

  • y true

  • n false

Since

0.1.0

See also

Throws

If the value is not a boolean