Set.v

From AGI Wiki
Revision as of 21:05, 21 April 2019 by Andrew Korson (talk | contribs) (Created page with "The '''set.v''' command indirectly sets a flag's value to TRUE. == Syntax == set.v(var vA); == Remarks == Sets flag '''fB''', where '''B''' equals the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The set.v command indirectly sets a flag's value to TRUE.

Syntax

set.v(var vA);

Remarks

Sets flag fB, where B equals the value of vA.

Possible Errors

Changing values of reserved flags can have unpredictable results, and should be done carefully.

Example

Code:

<syntaxhighlight lang="agi"> v50 = 99; set.v(v50); [ now flag f99 is TRUE </syntaxhighlight>

Technical Information

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

See Also

Flag Commands