Added if examples with some extra explanation