conditionalcode

noun
UK /kənˈdɪʃənəl kəʊd/
US /kənˈdɪʃənəl koʊd/

Code that only runs when something else is true.

The game uses conditional code to show a bonus level only after you win.


OTHER MEANINGS

2. A set of instructions that changes based on different situations.

The robot's conditional code tells it to stop if it sees a wall.

3. Computer instructions that check a condition before acting.

She wrote conditional code to check if the password is correct.

4. A rule in a program that decides which path to take.

The app's conditional code picks a different theme for day and night.