195k views
1 vote
In an if statement, the programmer must supply the condition that the computer needs to evaluate before further processing can occur. The condition must be which type of expression?

User Selen
by
5.2k points

1 Answer

2 votes

Answer:

The condition must be a type of Boolean expression

Step-by-step explanation:

The condition in an if statement must be boolean that is it must evaluate to true or false

The code block in the if statement will execute when the condition evaluates to true.

Most times the if block is followed by the else code block. The else code block gets executed when the given condition evaluates to false

User Oherrala
by
5.0k points