Nov-19-2022, 10:57 PM
Please use python tags to protect your code when posting code. Otherwise the formatting is lost.
Your if statement is parsed this way:
You probably intend something like one of the below:
Your if statement is parsed this way:
if (action == "/cash") or ("/money"):Non-empty strings (like
"/money"
) are always true, so this conditional will always evaluate to true.You probably intend something like one of the below:
if action == "/cash" or action == "/money": if action in ["/cash", "/money"]: