I\'m trying to use this and it doesn\'t appear to be working. I\'m guessing it\'s just not an option, but want to confirm. Is this valid?
(if_it_is) ? thats_cool
You can't accomplish that using the ternary operator, but you can use the short-circuit nature of && to do what you want.
&&
(if_it_is) && thats_cool();