version 5 by Michael Martin
Section 4 - Delivering lines
QBC responding with is an action applying to one number. Understand "[number]" or "say [number]" as QBC responding with when QBC is active.
Carry out QBC responding with (this is the perform talking rule):
let qbc_index be 0;
repeat through the qbc_litany:
if the enabled entry is 1:
increase qbc_index by 1;
if qbc_index is the number understood:
now the enabled entry is 0;
deliver the response entry quip;
display the QBC options;
follow the RQ out of range rules for qbc_index.