Isset: Difference between revisions
From Sierra Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
[[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">isset</div> | |||
<br /> | |||
==<br /> Introduction == | |||
The '''isset''' command returns the value of the specified [[Flag (AGI)|flag]]. | The '''isset''' command returns the value of the specified [[Flag (AGI)|flag]]. | ||
| Line 41: | Line 50: | ||
|} | |} | ||
== | ==<br /> References == | ||
<references /> | |||
==<br /> Related Links == | |||
[[Test Commands]] | * [[AGI Command Reference - Test Commands|Test Commands]] | ||
* [[issetv]] | |||
[[Category:Commands]] | <br /> | ||
[[AGI Logic Commands by Name#Commands|< AGI Logic Command Index]] | |||
| |||
[[Category:Commands]] | |||
[[Category:AGI Logic Commands]] | |||
Latest revision as of 17:09, 4 April 2025
Return to AGI Logic Commands by Name
isset
Introduction
The isset command returns the value of the specified flag.
Syntax
isset(flg fA)
fA
Remarks
Test commands are only valid in an if statement. The isset command returns TRUE if the flag is set, FALSE if it is not. You can use just the flag itself as an alternate syntax.
This statement can be combined with the NOT operator to create a ‘flag not set’ test.
Possible Errors
None.
Example
Code:
if(isset(f40))
{
print("flag 40 is set (TRUE)");
}
if(f40) [ alternate syntax
{
print("flag 40 is set (TRUE)");
}Technical Information
| Required Interpreter Version: | Available in all AGI versions. |
| Byte-Code Value: | 7 (0x07 hex) |
References