finished loops on industry

have if, else if, and else and while.