Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/28/15 in all areas

  1. ?: - Conditional operator Very useful e.g. to replace if(Sex) mes "..."; else mes "..."; clauses with simple mes "Welcome, " + (Sex?"Mr.":"Mrs.") + " " + strcharinfo(0); or to replace any other simple if-else clauses. It might be worth mentioning that ?: has low priority and has to be enclosed with parenthesis in most (if not all) cases.
    1 point
×
×
  • Create New...