Final answer:
The body of a loop is executed only if the boolean expression is true; this describes a while loop. While loops continue execution as long as the condition is true, distinguishing them from if-else and switch statements which do not inherently loop.
Step-by-step explanation:
The body of a loop is executed only if the associated boolean expression is true. This is true for the while loop. A while loop will continue to execute its body as long as the boolean condition remains true. Once the condition evaluates to false, the loop stops executing. This differs from an if-else statement, which executes conditionally only once, and a switch statement, which selects execution based on the value of an expression rather than a loop. In contrast, a for loop has a boolean condition as well but is often used when the number of iterations is known beforehand, and includes initialization and update expressions within its syntax.