Serching strings
Posted: Thu Nov 30, 2017 5:52 pm
Hi simple question really, but found no answers in search.
When the player is alowed to enter any text, I can check the text for key words
Like so...
My question is, how do I have it check without bothering with if its capslock or not?
Tried:
But then it trigered no mather what I wrote.
When the player is alowed to enter any text, I can check the text for key words
Code: Select all
if "Lego" in yc:
p "LotR fan are you?"
My question is, how do I have it check without bothering with if its capslock or not?
Tried:
Code: Select all
if "Lego" of "lego" in yc:
p "LotR fan are you?"