if-else statement

1 topic · 1 source

Technology› Programming

Java

A control structure used to choose between performing one of two alternative actions.

 if(boolean-expression){ // Statements performed if expression is true. ... } else{ // Statements performed if expression is false. ... } 
It is controlled by a boolean expression. See if statement.

Cite this definition

APA
MLA
Chicago