Heya James,
Here's the correct way to do it:
In my example, I did it with a name validation instead of email but it works the exact same way.
- You first ask the user what their email is, store it in a variable.
- You pull the column with all the emails that exist in your Google Sheets database, and save it in a
sheets_emails
variable (for example). I optionally use a Text bubble that shows that list in the chat to see what it returned, only while debugging. - You use a condition that checks if the
sheets_emails
list (that looks like ["test@test.com", "test@test.com"]
) contains the email
inputted by the user. - If it does, do what you want, if it doesn't do what you want as well. In my case, I just show "User authenticated" or "User unauthenticated"
Hope it helps! Let me know if you have any more questions