Issetv: Difference between revisions

From Sierra Wiki
Jump to navigationJump to search
Andrew Branscom (talk | contribs)
m 2 revisions imported
Andrew Branscom (talk | contribs)
No edit summary
Line 1: Line 1:
The '''issetv''' command returns the value of a [[flag]] indirectly.
[[Category:AGI Pages]]
[[Category:AGI Pages to be Edited]]
[[AGI Logic Commands by Name|Return to AGI Logic Commands by Name]]
 
<div align="center"><span style="font-size: 22pt">Issetv</div>
 
<br />
==<br /> Introduction ==
 
The '''issetv''' command returns the value of a [[Flag (AGI)|flag]] indirectly.


== Syntax ==
== Syntax ==
Line 38: Line 47:
|}
|}


== See Also ==
==<br /> References ==
 
<references />
 
==<br /> Related Links ==


[[Test Commands]]<br />
* [[Test Commands]]
'''[[isset]]'''<br />
* [[isset]]
[[Category:Commands]]<br />
&nbsp;
[[Category:Commands]]
[[Category:AGI Logic Commands]]

Revision as of 18:37, 3 April 2025

Return to AGI Logic Commands by Name

Issetv



Introduction

The issetv command returns the value of a flag indirectly.

Syntax

issetv(var vA)

Remarks

Test commands are only valid in an if statement.

The issetv command returns TRUE if the flag whose number matches the value of vA is set, FALSE if it is not. For example, if v50 equals 40, then issetv(v50) returns TRUE if flag f40 is set.

This statement can be combined with the NOT operator to create an ‘indirect flag not set’ test.

Possible Errors

None.

Example

Code:
v50 = 40;
if(issetv(v50))
  {
  print("flag 40 is set");
  }

Technical Information

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


References



Related Links