if-then statement
nounUK /ɪf ðɛn ˈsteɪtmənt/
US /ɪf ðɛn ˈsteɪtmənt/
A sentence that says if one thing happens, then another thing will happen.
If it rains, then we will stay inside.
RELATED WORDS
OTHER MEANINGS
2. In math, a rule that connects a condition to a result.
If a number is even, then it can be divided by two.
3. In coding, a command that runs only when a test is true.
If the score is over ten, then show the winner screen.
4. A way of stating a cause and its effect.
If you water the plant, then it will grow.