So, I'm trying to let someone forage for something if their survival level is high enough. Only problem is, I'm guessing it's not registering the variable used as a number, or something.
Here's what I'm trying to make work:
<<if $hasSurvivalbook is true or $skills['lvl'] is gt 2>>They appear to be edible //and// safe. You could <<link "take some">><<set $fruit['amt'] to itself +1>><</link>>. <<else>>You don't know much about the plants here, so you decide to avoid them.<</if>>
I isolated the part I though was wrong, and it gives the same error: (same error occurs if you use > or gt)
<<if $skills['lvl'] is gt 2>><</if>>
This is the error I get:
⚠ <<if>>: bad conditional expression in <<if>> clause: Unexpected token >
This is the array it works off of:
<<set $skills to [
The array is loaded way before the part where the block of code comes in, so I'm not sure what the problem is. Please help!