PDA

View Full Version : iif question


sabret00the
02-06-2005, 09:26 PM
ok after macro begging me to stop using em and seeing this (http://www.vbulletin.com/forum/showthread.php?t=127514&highlight=iif) i'm wondering what i should do.

should i switch all my iif's to the built-in PHP ternaryoperator,rewrite them as normal if conditionals or just leave em in myscript?

Marco van Herwaarden
02-07-2005, 04:17 AM
Lol, I would leave them, but every time you write a new line, think for yourself if iif is really the best solution. Don't try to code everything into 1 line all the time.