If else in rule engine

How to apply if else in rule engine?