MCPcopy
hub / github.com/4ian/GDevelop / setBoolean

Method setBoolean

GDJS/Runtime/variable.ts:645–648  ·  view source on GitHub ↗

* Change the value of the variable, considered as a boolean * @param newValue The new boolean to be set.

(newValue: boolean)

Source from the content-addressed store, hash-verified

643 * @param newValue The new boolean to be set.
644 */
645 setBoolean(newValue: boolean) {
646 this._type = 'boolean';
647 this._bool = !!newValue;
648 }
649
650 /**
651 * Toggle the value of the variable, considered as a boolean.

Callers 15

fromJSObjectMethod · 0.95
castToMethod · 0.95
toggleMethod · 0.95
setValueMethod · 0.95
serializeToVariableFunction · 0.45
setCurrentLobbyAttributeFunction · 0.45
writeFileFunction · 0.45
deleteFileFunction · 0.45
updateWorkshopItemFunction · 0.45
subscribeToWorkshopItemFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected