*if Statements (Between)


#1

Is there a “Between” option to use with *if Statements?

For example, say your character is fighting. Can you make it so that if the character’s strength is above 10, they win. If the character’s strength is below 5, they die. But if the character’s strength is between 5 and 10, they lose but still survive?


#2

Sure. Just make it like this:

*if ((strength > 5) and (strength < 10))

Don’t forget the brackets. ChoiceScript can’t really figure out what to do with such an *if-statement otherwise.


#3

Ah, didn’t think of that. Thank you! :slight_smile:


#4

You could also do something like:
*if Strength >10
_Win
*elseif Strength >5
_Lose
*else
_Die


#5

That works too. Thank you :slight_smile: