xelawho
07-02-2011, 03:12 PM
hello,
I have googled (I promise) but I can't find any examples... basically my code is getting bogged down in if/else if/ else statements, and I am wondering if there is a shorthand. I know (I think) that you can do if/else like this:
variable = (condition) ? trueValue : falseValue;
but can you add an else if into the code?
thanks in advance.
I have googled (I promise) but I can't find any examples... basically my code is getting bogged down in if/else if/ else statements, and I am wondering if there is a shorthand. I know (I think) that you can do if/else like this:
variable = (condition) ? trueValue : falseValue;
but can you add an else if into the code?
thanks in advance.