As a programmer I always try to find ways to cleaner code. This is an example:
The code can be a mess when using if else if else if else if (well, I think you know what I mean :) )
Instead of writing my code like this:
if (countryCode == "SE")
country= "Sweden";
else if (countryCode== "NO")
country= "Norway";
else if (countryCode== "DK")
country= "Denmark";
else
country = "";
I can write it like this:
country =(countryCode == "SE") ? "Sweden" : (countryCode == "NO") ? "Norway" : (countryCode == "DK") ? "Denmark": "";
Nice? Well, I think so :)