Quote:
Originally Posted by newbienoob
pawn Code:
if(db_num_rows(result)) { ShowPlayerDialog(.....); } else { ShowPlayerDialog(.....); } //Looks ugly
(db_num_rows(result)) ? ShowPlayerDialog(....) : ShowPlayerDialog(....); //Looks simple and clean!
|
Ternary operators are useful in many, many cases, but they _don't_ make your code easier to read.