Ternary

Similar to the if statement, tests if a condition is true or false.

 

condition ? true : false ;

 

Compile & run:

5 is less than 7

Leave a Reply