I'm trying to use the logical operator && in my ternary operator while chaining and it isn't working... For example:
(x === 5 && y === 5) ? (do something)
: (x === 5 && y === 4) ? (do something else)
: (x === 5 && y === 3) ? (do a third thing)
: null
Is this possible? Is there another way to do this?