Page 1 of 1
A simple syntax question (I am a moron) (Solved, though moronity persists)
Posted: Mon Nov 06, 2017 5:32 pm
by fukairi
Trying to check if player's points equals or is larger than four.
^I've tried different variations of this, but I can't get it to work. I'm sorry and ashamed to be asking this

I could get around it by just doing elif and copypaste the exact event for both, but that seems like a really dumb way to go about it.
Re: A simple syntax question (I am a moron)
Posted: Mon Nov 06, 2017 5:38 pm
by Dovahkitteh
No need to be ashamed! Python can be confusing and even less complicated statements are often difficult to remember, considering how many there are.
The one you're looking for is:
And conversely, less than or equal to would be:
You can also answer a lot of questions of this nature by just searching up "how to do X in Python" or on Stack Overflow, which is a godsend for many amateur programmers (including myself).
Re: A simple syntax question (I am a moron)
Posted: Mon Nov 06, 2017 5:41 pm
by fukairi
Dovahkitteh wrote: ↑Mon Nov 06, 2017 5:38 pm
No need to be ashamed! Python can be confusing and even less complicated statements are often difficult to remember, considering how many there are.
The one you're looking for is:
And conversely, less than or equal to would be:
You can also answer a lot of questions of this nature by just searching up "how to do X in Python" or on Stack Overflow, which is a godsend for many amateur programmers (including myself).
Oh my goooooooooooooood I didn't even think about putting it before the equal sign??? I feel like such a jackass. I swear I did try to google it, but my search terms were probably bad. Thank you so much for your help though <3