Equaln: Difference between revisions
From Sierra Wiki
Jump to navigationJump to search
No edit summary |
|||
| Line 57: | Line 57: | ||
* [[Test Commands (AGI)|Test Commands]] | * [[Test Commands (AGI)|Test Commands]] | ||
* | * [[equalv]] | ||
| | ||
[[Category:Commands]] | [[Category:Commands]] | ||
[[Category:AGI Logic Commands]] | [[Category:AGI Logic Commands]] | ||
Revision as of 18:02, 3 April 2025
Return to Logic Commands by Name
Equaln
Introduction
The equaln command compares a variable value to a given number. It returns TRUE if the values are equal.
Syntax
Remarks
Test commands are only valid in an if statement.
This statement can be combined with the NOT operator to create a ‘not equal’ test.
Possible Errors
None.
Example
Code:
if(v50 == 75) [ equivalent to 'if(equaln(v50, 75))'
{
print("v50 equals 75");
}
if(v50 != 75) [ equivalent to 'if(!equaln(v50, 75))'
{
print ("v50 does not equal 75");
}Technical Information
| Required Interpreter Version: | Available in all AGI versions. |
| Byte-Code Value: | 1 (0x01 hex) |
References
Related Links