Condition parsing