implemented Condition-parsing