Forum Discussion
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
- PhilMayorSuper Hero
Probably more oversight than a bug, would likely be caught during debugging and would be a Mistake I only made once.
needs fixing, I am using JavaScript less and less though because of browser inconsistencies.
I think we need to remember this is rapid elearning software the more we hack and rely on JavaScript the less it becomes rapid.
- SamClarkCommunity Member
Phil Mayor said:
I think we need to remember this is rapid elearning software the more we hack and rely on JavaScript the less it becomes rapid.
There is no JavaScript that I write that shouldn't already be there in Storyline. At the moment, the problem is that SL's HTML5 requires the student to click NEXT to play media. When desktops are set to autoplay, SL does the same for HTML5 unfortunately.Workarounds must be written and yes, it [hacking] is a tar pit.
- PhilMayorSuper Hero
IOS 6 seems to be a nest of inconsistencies noticed today neiaon sites playing without me initiating it.
I spent years extending Articulate Studio using swfs and hacks, I have no inclination to do this in Storyline. If I cannot do it out of the box I make the client aware. Maybe I am getting old
- SamClarkCommunity Member
BTW: I noticed Safari in IOS 6 does not require the student to click NEXT to play media (audio anyway). So autoplay works in IOS 6 now. I don't see anything official about this new behavior however. It may be a fluke.
Phil: what is a neiaon site?
- PhilMayorSuper Hero
I meant "media on sites", I cannot type on the iPad.
- GerryWasilukCommunity MemberOr more wise . . .
Phil Mayor said:
IOS 6 seems to be a nest of inconsistencies noticed today neiaon sites playing without me initiating it.
I spent years extending Articulate Studio using swfs and hacks, I have no inclination to do this in Storyline. If I cannot do it out of the box I make the client aware. Maybe I am getting old
- SamClarkCommunity Member
BTW: Where is the portal for submitting bug reports on a released version of Storyline? - GerryWasilukCommunity Member
Hey, Sam. Just submit a case with your bug: http://www.articulate.com/support/contact/submit.php
- WIroWisesoCommunity Member
Hi,
I'm having the same problem. Is there any update on this issue?
Cheers
- SamClarkCommunity Member
Wiro Wiseso said:
Hi,
I'm having the same problem. Is there any update on this issue?
It's broken as far as I know. I avoid using True/False in Storyline and instead use numeric 0 and 1.Sam