Toggle To For/en: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
 
(Updating to match new version of source page)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>
<section begin="image"/>[[File:toggle_to_for_block.png|alt=The Toggle To For Block|thumb]]<section end="image"/><p id="tooltip">Turns a toggle button widget on or off. Selecting “for everyone” has the same effect as if the user clicked the button. But “for me” will turn the button on/off only for the agent(s) who execute this command.</p>
==Syntax==
Select the desired toggle-button widget from the first drop down menu.  Then select either “on” or “off” from the second drop down menu.  Then select either “me” or “everyone” from the last drop down menu.
==Example==
[[File:toggle_to_for_example.gif|alt=Toggle To For example gif|thumb]]
[[File:toggle_to_for_example.png|alt=Toggle To For example code|thumb]]
While forever is toggled on, after completing everything in the list above the block, forever will be toggled off for everyone automatically. Forever will be toggled off until it is pushed again. When the ‘for me’ behavior is toggled, only the blocks which affect a particular agent will be turned off. If the ‘everyone’ behavior is toggled, then all blocks for all agents will be turned off.


[[Category:Interface]]
[[Category:Interface]]
[[Category:Code Block]]
[[Category:Code Block]]

Latest revision as of 07:43, 13 August 2023

Other languages:
The Toggle To For Block

Turns a toggle button widget on or off. Selecting “for everyone” has the same effect as if the user clicked the button. But “for me” will turn the button on/off only for the agent(s) who execute this command.

Syntax

Select the desired toggle-button widget from the first drop down menu. Then select either “on” or “off” from the second drop down menu. Then select either “me” or “everyone” from the last drop down menu.

Example

Toggle To For example gif
Toggle To For example code

While forever is toggled on, after completing everything in the list above the block, forever will be toggled off for everyone automatically. Forever will be toggled off until it is pushed again. When the ‘for me’ behavior is toggled, only the blocks which affect a particular agent will be turned off. If the ‘everyone’ behavior is toggled, then all blocks for all agents will be turned off.