Perhaps the approach suggested in this post may work for you. The quiz may serve as the flag if you normalize it by round((||Quiz||/100)+0.49,0).
Gradebook
Grade calculations using conditions
This discussion has been locked so you can no longer reply to it.