Reply To: Is there a way that I can have 2 answers for an answer,one with capital letters.

Home 2022 Forums 21 Lockdown Challenge Forum Is there a way that I can have 2 answers for an answer,one with capital letters. Reply To: Is there a way that I can have 2 answers for an answer,one with capital letters.

#1379
Bilal Kathrada
Keymaster

Good question! You can use the “or” operator:

if(answer1 == “Madiba” || answer1 == “madiba”)

In fact, using this you can add any number of options 🙂