The comma operator usually only used inside functions to separate arguments. The comma removes the latest value from the stack and puts it into the register eax, where it can be used by the next function/operator.
However, you can also use the comma outside functions. There, the comma let Filter Factory "forget" everything that happened before, and start the formula from the beginning.
Example: The formular "123,456,r,g" is equal to "123,456,g" which is equal to "123,g" which is equal to "g".
You cannot use the comma operator inside an if ... then ... else structure.
Syntax
a,b
Original Machine Code (in OPER resource) of Filter Factory 3.0 and 3.0.4 for Photoshop/Win32
58 | pop eax (removes the previous result) |