SAPO::Utility.Variable->isBoolean

This method will check if the passed variable is a Boolean.

This is static method.

Syntax

SAPO.Utility.Variable.isBoolean(variable)

Compatibility

All browsersYes

Depends

Input Parameters

  • mixed var : Input variable

Sample

Example

alert(SAPO.Utility.Variable.isBoolean(true)); 
will return true;

alert(SAPO.Utility.Variable.isBoolean('this is a string')); 
will return false

Community feedback

Error: Failed to load processor AddComment
No macro or processor named 'AddComment' found