toggle

toggle

toggle

Details

Kode wheel segment Math
Style Math
Modifiers  None
Primarily WHEN/DO DO
Pre-made brains that use it Unknown

Math > toggle

Description

This tile is a switch. It changes a Boolean variable from true to false or false to true. You use toggle instead of specifying true or false when the object may be in either state when you activate the call to action. You can also use it to create flashing lightbulbs or opening and shutting traps by turning the power on and off in a countdown loop.

 

 

Example Code

WHEN [interacted] DO [toggle][boolvar: show map]

or

WHEN [countdown][3][loop] DO [toggle][has power]

Modifiers

 

 

 

None

Other Uses

None

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: