Equalv
From AGI Wiki
The equalv command compares the values of two variables. It returns TRUE if the values are equal.
Contents |
[edit]
Syntax
[edit]
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.
[edit]
Example
if (v50 == v51) { //equivalent to 'if (equalv(v50, v51)) {'
print("v50 equals v51");
}
if (v50 != v51) { //equivalent to 'if(!equalv(v50, v51)) {'
print ("v50 does not equal v51");
}
[edit]
Technical Information
| Required interpreter version | Available in all AGI versions |
| Bytecode value | 2 (0x02 hex) |
[edit]
See Also
[edit]
Sources
- WinAGI help file
