Set

From AGI Wiki
Revision as of 14:44, 20 April 2019 by Andrew Korson (talk | contribs) (Created page with "The '''set''' command sets a flag's value to TRUE. == Syntax == set(flg fA);<br /> fA = true; == Remarks == None. == Possible Errors == Changing values of [...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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:

<syntaxhighlight lang="agi"> set(f99); f99 = true; [ same as set(f99); </syntaxhighlight>

Technical Information

Required Interpreter Version: Available in all AGI versions.
Byte-Code Value: 12 (0x0C hex)

See Also

Flag Commands
set.v
reset
reset.v