if-then rule

noun
UK /ɪf ðɛn ruːl/
US /ɪf ðɛn ruːl/

An if-then rule tells you that if one thing happens, then another thing will happen.

The if-then rule says that if it rains, then we will stay inside.


OTHER MEANINGS

2. In computer programming, an if-then rule is a command that runs an action only when a test is true.

The game uses an if-then rule to give you a point when you catch the star.

3. In everyday planning, an if-then rule is a simple plan that links a trigger to a response.

Her if-then rule is: if I finish homework, then I can play outside.

4. In logic, an if-then rule connects a premise to a conclusion.

The if-then rule states that if all birds have feathers, then this bird has feathers.