isValidBoolean

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

  1. bool isValidBoolean(string input)
    bool
    isValidBoolean
    (
    string input
    )
  2. bool isValidBoolean(TNumber input)

Parameters

input string

The string input to validate.

Return Value

Type: bool

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

Meta