Whenever I try to use IndexOf, I get the following error
"Error: <<if>>: bad conditional expression in <<if>> clause: Cannot read property 'indexOf' of undefined"
This is an example of the code that's returning that.
<<if $inventory.indexOf("Sasha") == 0>>I can see Sasha, holding you, wiping your face, asking over and over 'what did you do? what did you do?!'<<endif>>
Here's where that inventory item is added
This worked back in 2016 when I first created the story.
I'm using SugarCube 1.0.35