Successfully set up conditional using if, else if, else as well as concluding ternary.