Set: Difference between revisions
From Sierra Wiki
Jump to navigationJump to search
No edit summary |
|||
| Line 1: | Line 1: | ||
The '''set''' command sets a [[flag]]'s value to TRUE. | The '''set''' command sets a [[Flag (AGI)|flag]]'s value to TRUE. | ||
== Syntax == | == Syntax == | ||
| Line 32: | Line 32: | ||
|} | |} | ||
== | ==<br /> References == | ||
* [[Flag Commands | <references /><!-- Do not edit this section. It is autopopulated by <ref></ref> tags --> | ||
==<br /> Also See == | |||
* [[:Category:Flag Commands (AGI)|Flag Commands]] | |||
* [[reset]] | * [[reset]] | ||
* [[reset.v]] | * [[reset.v]] | ||
* [[set.v]] | |||
* [[toggle]] | |||
* [[toggle.v]] | |||
| | ||
[[Category:Commands]] | [[Category:Commands]] | ||
[[Category:Flag Commands (AGI)]] | [[Category:Flag Commands (AGI)]] | ||
Revision as of 18:01, 24 October 2025
The set command sets a flag's value to TRUE.
Syntax
set(flg fA);
fA = true;
Remarks
None.
Possible Errors
Changing values of reserved flags can have unpredictable results, and should be done carefully.
Example
Code:
set(f99);
f99 = true; [ same as set(f99);Technical Information
| Required Interpreter Version: | Available in all AGI versions. |
| Byte-Code Value: | 12 (0x0C hex) |
References
Also See