I always prefer to use the braces simply because that's the coding technique I've developed for myself that works for me. If I stopped using them, sure I'd save a whole 4 bytes of code every time I had to use a conditional like that, but I'd get very confused very quickly.
I didn't know about the ternary operator though. Thanks for that.
|