Having issues with conditions (trying to replicate an if, else if,..etc) scenario