decision-based programming

noun
UK /dɪˈsɪʒən beɪst ˈprəʊɡræmɪŋ/
US /dɪˈsɪʒən beɪst ˈproʊɡræmɪŋ/

A way of writing computer programs where the computer picks what to do next by checking if something is true or false.

In decision-based programming, the game checks if you have enough coins before letting you buy the hat.


OTHER MEANINGS

2. A style of building software where rules decide which path the code takes.

The chatbot uses decision-based programming to choose a reply based on your question.

3. Writing code that uses yes-or-no checks to control what happens.

She learned decision-based programming by making a quiz that says 'correct' or 'try again'.

4. A method where the program's next step depends on the result of a test.

The traffic-light simulator relies on decision-based programming to switch colors.