isValidBoolean

Checks whether a given numeric input is a boolean or not.

  1. bool isValidBoolean(string input)
  2. bool isValidBoolean(TNumber input)
    bool
    isValidBoolean
    (
    TNumber
    )
    (
    TNumber input
    )
    if (
    isNumeric!TNumber
    )

Parameters

input TNumber

The numeric input to validate.

Return Value

Type: bool

True if the input is a valid boolean, false otherwise.

Meta