ask questions until condition met (continued)

Ok the saga goes on...
if you try input all the other flavors and options everything works fine...
when you input chocolate for either icecream or sauce it messes up because it attributes the same value to both overwriting the previous choice for icecream too...
can you provide me a hint of how to set the if condition to make the program understand that if the user picks chocolate it means only for icecream and not for sauce?
Last edited on
Right now, both icecream and sauce are being checked against the same string, "chocolate". You need
some way of distinguishing between chocolate ice cream and chocolate sauce (i.e. they can't both use "chocolate"). If you are intent on using "chocolate" for both, you could move the ice cream choice and sauce choice into their own separate loops so that they are not being checked at the same time.
Last edited on
Topic archived. No new replies allowed.