Unexpected returned variable in Python [duplicate]

The conditions that you have work as (unitType == "C") or "c" and that is not what you want. Instead you want unittype in ("C", "c").

Leave a Comment