Forum Discussion

PaulGolightly's avatar
PaulGolightly
Community Member
3 months ago

JavaScript not working at all?

Hi everyone, a couple years ago I created a simulation of an internal product, and in trying to update the simulation, a JavaScript routine stopped working that had allowed Storyline to evaluate whet...
  • Nedim's avatar
    3 months ago

    Try this:

    var player = GetPlayer();
    player.SetVar("Eval_UsedCaseNumber", true);

    This should properly update the boolean variable. Other than that, your code syntax looks good if you're setting a text value for the text variable. Additionally, check the console logs in your developer tools. You should see an error message or some indication if your code is not functioning as intended. If possible, please upload your sample project here so that someone can take a closer look.