Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

[Sugarcube] If within number range

$
0
0
Is there something I can put in an "if" statement to test if something's within a certain number range? Something like:
<<if $Percent is 1-50>>Thing!<<endif>><<if $Percent is 50-100>>Other thing!!<<endif>>

I know that as an alternative I could do something like:
<<if $Percent is gt 1>><<if $Percent is lt 50>>Thing!<<endif>><<endif>><<if $Percent is gt 50>><<if $Percent is lt 100>>Other thing!<<endif>><<endif>>

But this produces much more clutter and is slightly more time-consuming, so I figured I'd ask if there was already a built-in "within these numbers" command for if statements that I didn't know about.

Thanks so much!

Viewing all articles
Browse latest Browse all 1844

Trending Articles