I am trying to do an if statement for amazon lex where if a user answers 'A' for question 1, user's next question will be question 2 but when user answers 'B', the user is brought to question 3 instead. For example,
Example 1:
Lex: "Do you like ice cream?"
User: "Yes"
Lex: "What flavour"?
Example 2:
Lex: "Do you like ice cream?"
User: "No"
Lex: "Do you like cake?"
I know I have to do the validation in aws lambda (python) but I am not really sure what the code is for this to happen.