Toggle To For: Difference between revisions

From StarLogo Nova Wiki
(Marked this version for translation)
(updates from Blockument)
Line 4: Line 4:
<!--T:2-->
<!--T:2-->
<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>
<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.


<!--T:1-->
<!--T:1-->

Revision as of 19:23, 11 August 2023

Other languages:

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.