Difference between revisions of "Reset.v"

From AGI Wiki
Jump to navigationJump to search
(Created page with "The '''reset.v''' command indirectly changes a flag's value to FALSE. == Syntax == reset.v(var vA); == Remarks == Flag '''B''', where '''B''' = '''vA'...")
 
 
Line 34: Line 34:
  
 
[[Flag Commands]]<br />
 
[[Flag Commands]]<br />
 +
'''[[set]]'''<br />
 +
'''[[set.v]]'''<br />
 
'''[[reset]]'''<br />
 
'''[[reset]]'''<br />
 
[[Category:Commands]]<br />
 
[[Category:Commands]]<br />

Latest revision as of 15:00, 20 April 2019

The reset.v command indirectly changes a flag's value to FALSE.

Syntax

reset.v(var vA);

Remarks

Flag B, where B = vA, is reset to FALSE.

Possible Errors

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

Example

Code:

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

Technical Information

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

See Also

Flag Commands
set
set.v
reset