Control Variables Multiple Items Help

Hello, I am having trouble with control variables. I have a quest set up where the player needs to bring two different items to an NPC (a cookie and a drink). How can I set this up with conditional branches? For example: if they have neither, the NPC says "Please bring me a cookie and a drink," if they have just one or the other, the NPC says "Please find (the other item)," and if they have both, then the NPC says "Thank you."

Thank you for your help!
Code:
Conditional Branch: Item [Cookie] in Inventory
  Conditional Branch: Item [Drink] in Inventory
    remove cookie
    remove drink
    text from NPC when you give them to him
    turn on a self switch that activates the next page
  Else
    text Please bring me a drink
  End
Else
  Conditional Branch: Item [Drink] in Inventory
    text Please bring me a cookie
  Else
    text Please bring me a cookie and a drink
  End
End
It can all be done with condition branches, variables and/or items.

Here is an example of a simple event. I didn't include a screen shot of event page 2. It just basically says go away. We're done here ;-)

This event starts out with the quest being given. The player accepts the quest and the switch is turned on. The first part of the quest is nested under the the first conditional branch's else statement that checks to see if the switch is on.

For this example the player must first have the cookie to progress the quest. No cookie, the quest giver doesn't care if they already have the drink.

If the player only has the cookie they have to come back once they also have the drink.

If the player has both items it goes to completion, removes the items from inventory and turns "SELF SWITCH A" on. I forgot to turn the "quest_food" switch off. It doesn't really matter unless this is called/checked somewhere else in your game.

It can be a little tricky depending on what you want to do.

Hope this gets you in the right direction.
Thank you both for your help! Yes, these answers are what I was looking for!

Original thread: https://forums.rpgmakerweb.com/threads/control-variables-multiple-items-help.86857/