View Single Post
02-22-2007, 10:52 AM
#21
jono1 is offline jono1
jono1's Avatar
Status: Non-conformist
Join date: Jul 2005
Location: Canberra, Australia.
Expertise:
Software:
 
Posts: 1,172
iTrader: 0 / 0%
 

jono1 is on a distinguished road

  Old

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.