A conditional statement in programming is a coding instruction that introduces a condition and identifies a set of actions to be executed if that condition is met. Conditional statements can be represented in many ways, depending on the programming language and context, but the most common is the If-Then expression.
When using the If-Then expression, a programmer introduces the condition in the if section and places the actions in the then section. The statement can be further expanded with the elseif expression, which allows for adding any number of other conditions, and the else expression, which provides further instructions for when the condition is not met.