Toggle: Difference between revisions
From Sierra Wiki
Jump to navigationJump to search
m 2 revisions imported |
|||
| Line 33: | Line 33: | ||
== See Also == | == See Also == | ||
[[Flag Commands]] | * [[:Category:Flag Commands (AGI)|Flag Commands]] | ||
[[Category:Commands]] | * '''[[set]]''' | ||
* '''[[set.v]]''' | |||
* '''[[reset.v]]''' | |||
| |||
[[Category:Commands]] | |||
[[Category:Flag Commands (AGI)]] | |||
Revision as of 18:50, 24 October 2025
The toggle command toggles a flag's value.
Syntax
toggle(flg fA);
Remarks
Toggles flag fA (from FALSE to TRUE or TRUE to FALSE).
Possible Errors
Changing values of reserved flags can have unpredictable results, and should be done carefully.
Example
Code:
set(f99); [ now f99 = TRUE
toggle(f99); [ now f99 = FALSETechnical Information
| Required Interpreter Version: | Available in all AGI versions. |
| Byte-Code Value: | 14 (0x0E hex) |
See Also