Quote:
Originally Posted by Cheater912 It depends what's in the statement. The ternary operator is mainly for setting booleans.
You can wrap a function around it or set something equal to it, but it must be a bool. |
Oh, i see.
So it would need to be a true or false statement in order to use the ternary operator.
Ok, that makes sense, and does keep the coding lines minimum, but i could see places where this funciton might not be as neccessary.
Very handy tho
Thanks!