- Action Code:
0x11
- Stack:
2 → 1
- SWF version:
4
Low-level logical or operator.
The short-circuiting semantics of the ActionScript operator ||
mus be handled during compilation.
Abstract AS2
@t0 = @pop();
@push(!!(@pop() || @t0));
Adobe documentation
ActionOr
ActionOr performs a logical OR of two numbers.
Field | Type | Comment |
ActionOr | ACTIONRECORDHEADER | ActionCode = 0x11 |
ActionOr does the following:
- Pops value A off the stack.
- Pops value B off the stack.
- Converts A and B to floating-point; non-numeric values evaluate to 0.
- If either of the numbers is nonzero, true is pushed to the stack for SWF 5 and later (1 is pushed for SWF
4); otherwise, false is pushed to the stack for SWF 5 and later (0 is pushed for SWF 4).