Basic question about Scripting in unity3d

what does it do? The question mark in unity 3d and The : becouse i have faced a script that say

X > 0 ? - 180.0f :180

1 Answer

1

This is shorthand for an if statement

http://forum.unity3d.com/threads/97053-question-mark-…-operator-…
http://answers.unity3d.com/questions/33202/question-mark-in-setpixel-documentation-example.html

thanks....

this is more simple thanks Bunny