in reply to Re^3: order of arguments evaluated
in thread order of arguments evaluated

My second solution, like yours, will only increment the variable if it is zero, because logical-or is a short-circuiting operation.

Before you get done generating a multi-billion-row table, I think you're going to have problems with browser timeout. :-)


Caution: Contents may have been coded under pressure.