conditional programming

noun
UK /kənˈdɪʃənəl ˈprəʊɡræmɪŋ/
US /kənˈdɪʃənəl ˈproʊɡræmɪŋ/

Conditional programming is when a computer decides what to do by checking if something is true or false.

In conditional programming, the game only ends when your lives reach zero.


OTHER MEANINGS

2. Writing code where different actions happen depending on whether a test is true or false.

The app uses conditional programming to show a discount only if the cart total is over fifty dollars.

3. A style of programming that relies on if-else statements to control the order in which instructions run.

Learning conditional programming helped her make the robot turn left or right based on its sensors.

4. The part of a program that chooses between different paths using true-or-false checks.

The login screen's conditional programming checks the password before letting you in.