If else expression implemented