FilterFactory - Operator "?:" (if then else)

Back to function listing

If a is true (not zero), then evaluate b, else evaluate c.

Syntax

a?b:c

Original Machine Code (in OPER resource) of Filter Factory 3.0 and 3.0.4 for Photoshop/Win32

58 pop eax (param_c) res = param_c;
5B pop ebx (param_b) .
59 pop ecx (param_a) .
83 F9 00 cmp ecx,$00 (0) .
74 02 jz +$02 (@@1) if (param_a == 0) goto @@1;
8B C3 mov eax,ebx res = param_b;
@@1: @@1:
50 push eax return res;