Hi folks,
I have some code like this:
if the accusation level of the player is a number between 1 and 4:
say "something".
“Number between 1 and 4” doesn’t work. I can’t find the information in the documentation. How is the right syntax?
Thanks in advance,
textplayer
Just do a compound condition:
If the accusation level of the player is at least 1 and the accusation level of the player is at most 4:
(assuming you want inclusive rather than exclusive “between”)
If you want to do this a lot, you can write a custom phrase for it:
To decide whether (x - a number) is between (y - a number) and (z - a number):
if x is less than y, no;
if x is greater than z, no;
yes.
And then you can write “If the accusation level of the player is between 1 and 4:”