Can't use `if case` with Ternary Operator?

This provides you with the option to do

.opacity(.invalid ~= validationState ? 1 : 0)
3 Likes