if-then programming

noun
UK /ɪf ðɛn ˈprəʊɡræmɪŋ/
US /ɪf ðɛn ˈproʊɡræmɪŋ/

A way to tell a computer what to do only when something is true.

In if-then programming, the robot moves forward if the path is clear.


OTHER MEANINGS

2. A style of coding that uses if-then rules to make choices.

The game uses if-then programming to decide when the player wins.

3. A teaching method where kids learn to write simple if-then rules.

The class practiced if-then programming by making a sprite say hello if clicked.

4. A way to set up automatic actions based on conditions.

The smart lamp uses if-then programming to turn on when it gets dark.