- Home /
What does "?" and ":" mean
Hi can some one explain what this means:
scale = animateSize ? sizeCurve.Evaluate( s ) : 1f;
the whole script can be found HERE
Comment
Best Answer
Answer by dannyskim · Feb 18, 2013 at 06:47 PM
Ternary ( tertiary ) operator in c-like languages:
In pseudo terms:
IF animateSize IS TRUE THEN scale EQUALS sizeCurve.Evaluate( s ) ELSE scale EQUALS 1f.
So, ? is to THEN, : is to ELSE.
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Stopping a function when another function running. 2 Answers
Player damage stops working over time 0 Answers
Find Objects with particular tag 2 Answers