I've run into an issue when setting a variable with a cycling link in 1.4/ SugarCube. The cycling link successfully changes the variable, however, the following if statement does not evaluate correctly. Here's the code:
<<cyclinglink "$familyone" "sister" "brother">>
[[Now sing|First Song]]
Then on the "First Song" passage..
<<print "$familyone">>
<<if "$familyone" eq "sister">>
[["sister"]]
<<else>>
[["busted"]]
<<endif>>
Even when $familyone is set to "sister" via the cycling link, I get the output:
sister
busted
As you can see, I tested that the variable was in fact set to "sister," and it correctly printed it as such. However, I still get the "else" output from the if statement. Any insight into fixing this issue would be greatly appreciated!
Comments
Thank you so much! You're absolutely right, I feel so silly now!