option-based programming
nounUK /ˈɒpʃən beɪst ˈprəʊɡræmɪŋ/
US /ˈɑːpʃən beɪst ˈproʊɡræmɪŋ/
A way of writing computer code where the program can choose between different paths, like picking one of several doors.
With option-based programming, the game lets you choose a character before it starts.
OTHER MEANINGS
2. A style of coding where settings or features are turned on and off by selecting options.
The app uses option-based programming so users can switch themes easily.
3. A method where a program presents a menu of choices to the user.
The kiosk's option-based programming shows buttons for each ticket type.
4. Writing code that handles many possible cases by checking options one by one.
Her option-based programming made the quiz handle every answer choice.