select 2 options from button . button (pizza and Burger) then save then to order summary at the end

Am making Food order bot , but i cant pass the stage of selecting 2 foods at once . (Using buttons and storing it in a variable at the same time and using it in the order summary to show wat i have ordered.)
then the same for the soups.
selectedFoods = []
selectedSoups = []

Start:
Say: "Welcome to our food ordering service. What would you like to order?"
Options: "Food", "Soups", "Review Order"

Food:
Say: "Please select your food items."
Options: "Pizza", "Burger", "Salad", "Done"
If "Pizza" is selected:
Append "Pizza" to selectedFoods
If "Burger" is selected:
Append "Burger" to selectedFoods
If "Salad" is selected:
Append "Salad" to selectedFoods
If "Done" is selected:
Go to Start

Soups:
Say: "Please select your soup items."
Options: "Tomato Soup", "Chicken Soup", "Vegetable Soup", "Done"
If "Tomato Soup" is selected:
Append "Tomato Soup" to selectedSoups
If "Chicken Soup" is selected:
Append "Chicken Soup" to selectedSoups
If "Vegetable Soup" is selected:
Append "Vegetable Soup" to selectedSoups
If "Done" is selected:
Go to Start

Review Order:
Say: "Here is your order summary."
Say: "Selected foods: {selectedFoods}"
Say: "Selected soups: {selectedSoups}"
Go to Start

same thing like this how can i implement it.
Was this page helpful?