Programming (11th Grade)

What is a conditional statement? Give an example.

A conditional statement executes a block of code based on whether a specified condition is true or false, e.g., 'if' statements.