if-else: Concept map

An if statement identifies which statement to run based on the value of a Boolean expression. In the following example, the bool variable result is set to true and then checked in the ifstatement. The output is The variable is set to true..

Clickable & Draggable!

Click node to preview!