Mark wrote: > LONG IF endBar OR endFlag > '...do stuff > XELSE '...here we would expect both of them to be zero. > LONG IF gMarket.mBegin(0)=_flatMarket '...problem condition > PRINT endBar,endFlag > '...both of these print as non-zero positive values! > END IF > END IF That really is weird. I was not able to reproduce the problem, using various values for endBar & endFlag (even changing the infamous "optimize as integer" preference did not make any difference). Can you provide some actual values of endBar & endFlag which produce your funny result? - Rick.