if statement
if statement
Conditionally executes code.
Used where code needs to be executed only if some condition is true.
Syntax
if ( expression ) statement_true | (1) | |
if ( expression ) statement_true else statement_false | (2) |
Explanation
expression must be an expression of any scalar type.
If expression compares not equal to t