If the equation to the left of the ? evaluates to true, then it will return the first value (which in this case will store the value 'bridge_metal_vert_1' into the string sBridge. If the equation to the left of the ? evaluates to false then it returns the 2nd value which would be bridge_metal_vert_2 .