 |
ALPHA-VISION® Compare Operations: IsRefEqual
|
IsRefEqual
SUMMARY
IsRefEqual - compares two variables resp. reference variables
SYNTAX
IsRefEqual(
<node1, node2>);
ARGUMENTS
- node1, node2 (type:any)
-
IsRefEqual compares two variables resp. reference variables
DESCRIPTION
Stack
- Missing arguments are taken from the stack.(and removed from there).
- The result is pushed onto the stack.
Effect
On a compare operation
IsEqual with a
Reference-Variable defined as an argument, the value of the referenced
variable is compared, not the reference itself.
IsRefEqual compares two Reference-Variables, resp. one Reference-Variable
with a (possibly) referenced Variable.
EXAMPLES
//Stack before: empty
SetRefOf(refvar, var);
IsRefEqual(refvar,var);
//Stack afterwards: (1 Element):
//true
//Stack before: empty
SetRefOf(refvar1, var1);
SetRefOf(refvar2, var2);
IsRefEqual(refvar1, refvar2);
//Stack afterwards: (1 Element):
//false
Syntax Notation
- [aaa]
- aaa is optional (zero or one occurences)
- (aaa|bbb)
- aaa exclusive or bbb
- (aaa)*
- aaa may occur indefinitely often or may be omitted
- (aaa)+
- aaa may occur indefinitely often but at least once
- (aaa)m..n
- aaa may occur from m to n times