SplitScript reference / bool / not

bool.not

Operator

bool.not() -> bool

Inverts a boolean value.

This method is also the implementation of the ! operator.

Effects: pure

Runtime behavior: available everywhere; synchronous

Examples

Invert a loading flag

let isPlaying = !false