No -- if the # is MagicNumberShort, the first test will skip to the next order and you'll never see your short order.followNev wrote:Do I simply write the code as:
if ( OrderMagicNumber () != MagicNumberLong) continue;
if ( OrderMagicNumber () != MagicNumberShort) continue;
?
You could do something like
if ( OrderMagicNumber () != MagicNumberLong && OrderMagicNumber () != MagicNumberShort) continue;
That way, it only skips to the next order if the # isn't your long # AND it isn't your short #.