Implement if/else and each/else