I'm trying to reuse some old code I wrote and forget where I found the syntax(I'm no expert - probably fit better in the 'dabbler' category).

Code:
if(pmIn != ""){flag = flag | a;}
Is this a short cut for the ternary operator? As in
Code:
flag = (pmIn != "") ? flag : a
or
Code:
if(pmIn != ""){flag = flag;} else {flag = a;}
Thanks