Toggle: Difference between revisions
From Sierra Wiki
Jump to navigationJump to search
m (1 revision imported) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 00:19, 3 June 2024
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:
<syntaxhighlight lang="agi"> set(f99); [ now f99 = TRUE toggle(f99); [ now f99 = FALSE </syntaxhighlight>
Technical Information
Required Interpreter Version: | Available in all AGI versions. |
Byte-Code Value: | 14 (0x0E hex) |