Boolean

Handle Wrappers View source
Boolean

Source on GitHub

Functions

xor

public function xor(bool a, bool b) returns boolean

Returns true if exactly one of the arguments is true

Extension Functions

boolean.toString

public function boolean.toString() returns string

Converts this boolean into a string

string.toBool

public function string.toBool() returns boolean

Converts this string into a boolean

string.isBool

public function string.isBool() returns bool

boolean.toInt

public function boolean.toInt() returns int

Converts this boolean into an int

int.toBool

public function int.toBool() returns boolean

Converts this int into a boolean

boolean.xor

public function boolean.xor(bool other) returns boolean

Returns true if exactly one of the arguments is true