What's problem you are encountering?
I need help turning a list with certain answers into the next part of my project. For example, I have Burger in the list, and when it asks what I want to order, it skips the part where I want to tip and says this item is not on the menu.
I think I'm forgetting a simple step but my project is down below.
https://snap.berkeley.edu/snap/snap.html#present:Username=trippgolembeski&ProjectName=Tip%20calculator
right now, your code says (answer) = (menu) . However, the answer will never be the same as the menu variable, because the menu is a list, and the answer input is a text. to fix this, just (menu) contains (answer) .
Also, you may want to consider making your code more efficient using if <> {
} else if <>{
}@<>. to get this, click the right black arrow on the normal if <>{
}@>
block.
it's an arrow that is the color black. (I honestly have no Idea what that questions means because I think you know what a black arrow is, please tell me what you are actually confused about.
Oh sorry I didn’t know what it was I thought it was a archers arrow sorry!
Thank you so much
I might need help later if that's fine with you calculating the tips but I'm going to try to do it myself.
Now I want to take the answer from the menu then put it into the part where I add the the tip. I basically want it to be like I ordered a burger I would to add a 15% tip then it adds the burger price to the tip amount. I updated the project so if you the link should still work
you may want to look at the menus library (file->libraries).
Drag this into snap:
i modified your script a bit because there were some issues, but it should work nicely (though there are some things I probably could optimize that I overlooked)