Create if-else and loops