A ? B : C # is equivalent to if ( A ) { B } else { C } #### print A ? B : C; #correct # equivalent if-else? print if(A){ B }else{ C }; #nope # does the same, but doesn't mean the same: if( A ){ print B } else { print C }