Jul-22-2021, 07:06 PM
(Jul-22-2021, 06:50 PM)jefsummers Wrote: Parenthesis can help break this into segments for you. I think this is what you wantI was thinking this instead:
if ('AH' in mStrip or 'MH' in mStrip) or ('GL' in mStrip and not 'ML' in mStrip):
if ('AH' in mStrip or 'MH' in mStrip or 'GL' in mStrip) and not 'ML' in mStrip:But that just shows that a string of and and or statements is bad code.