rule-based code
nounUK /ˈruːl beɪst kəʊd/
US /ˈruːl beɪst koʊd/
Code that follows a set of clear rules to decide what to do.
The game uses rule-based code to decide when a player scores a point.
OTHER MEANINGS
2. Software that makes choices using fixed if-then rules instead of learning from data.
The chatbot's rule-based code answers only questions it was programmed to expect.
3. A style of programming where every action is triggered by an explicit condition.
Her rule-based code checks the temperature and turns on the fan when it is too hot.
4. A simple system that follows written instructions step by step.
The traffic light runs on rule-based code that changes colors on a timer.