MCPcopy Index your code
hub / github.com/4ian/GDevelop / toggle

Method toggle

GDJS/Runtime/variable.ts:653–655  ·  view source on GitHub ↗

* Toggle the value of the variable, considered as a boolean.

()

Source from the content-addressed store, hash-verified

651 * Toggle the value of the variable, considered as a boolean.
652 */
653 toggle() {
654 this.setBoolean(!this.getAsBoolean());
655 }
656
657 /**
658 * Sets the primitive value using the setter of the current type.

Callers

nothing calls this directly

Calls 2

setBooleanMethod · 0.95
getAsBooleanMethod · 0.95

Tested by

no test coverage detected