Change Condition to Predicate
Format code