[ic] Usertag return value

Peter peter at pajamian.dhs.org
Thu Feb 12 12:19:26 UTC 2009


On 02/12/2009 01:14 AM, jimbo wrote:
> Peter wrote:
> 
> Sorry, missed the 'or' and saw '||'. In terms of precedence the 
> assignment binds first and then the 'or' is evaluated. So, it works the 
> way it was written. :(

True, but it would work with || as well, even though it evaluates the ||
before the assignment, if the function returns a true value the right
side of the || is ignored and the left side is assigned.  If it returns
false then the right side of the || is run and the block returns before
any assignment is made (assignment is irrelevant anyways because the
block returns).

Peter




More information about the interchange-users mailing list