Less Than

SWF Action
Action Category: 
Comparisons
Action Details: 
0
Action Identifier: 
15
Action Structure: 
<n.a.>
Action Length: 
0 byte(s)
Action Stack: 
pop 2 (a), push 1 (b)
Action Operation: 
a1 := pop();
a2 := pop();
r := a2 < a1;
push(r);
Action Flash Version: 
4

Pop two values, compare them for inequality and put the Boolean result back on the stack.

Other comparison operators:

  • Less Than or Equal (n2 <= n1)
Swap + Less Than + Logical Not
  • Greater Than or Equal (n2 >= n1)
Less Than + Logical Not
  • Greater Than (n2 > n1)
Swap + Less Than

Note that this operator should only be used in version 4. Since version 5, it is better to use Less Than (typed) or Greater Than (typed).