 |
 |
 |
 |
| Name |
|
boolean() |
 |
|
|
| Examples |
|
boolean b = boolean(60); // Sets the value of b to true
boolean a = boolean(0); // sets the value of a to false
|
|
|
| Description |
|
Converts a primitive datatype to its boolean representation. |
 |
|
|
| Syntax |
|
boolean(val)
|
 |
|
|
| Parameters |
|
| val |
|
int, long, float, char, byte or boolean
|
|
 |
|
|
| Returns |
|
boolean |
 |
|
|
| Usage |
|
Application |
 |
|
|
| Related |
|
boolean int() long() float() char() byte() |
|