Forum Discussion

SamClark's avatar
SamClark
Community Member
12 years ago

Storyline True/False variable comparison

UPDATE:

After further testing, I found that JavaScript setting a variable to "true" in Storyline ONLY FAILS IN HTML5.  All is well in the flash versions.  Simply put, a Storyline variable set "true" by JavaScript, e.g.,

GetPlayer().SetVar("MyTrue/FalseVar", true);

will NOT COMPARE EQUAL to True in Storyline when running HTML5.

For consistency's sake, I'll file a bug report.  I know of no way to get a true result in HTML5 using JavaScript now.  I have to resort to Numbers and ignore True/False variables.

Sam