Forum Discussion
Using JavaScript with True/False Buttons
Although as Walt says its hard to figure out exactly whats wrong without a sample... i do have 2 suggestions that might help.
Remove the Trigger#2 from the list and add it to a 'When variable changes'. That way you can only trigger it a wanted change of some variable.
Also be aware that variables in Storyline are always strings. So i do think the line in your code...var Concate = List_Smash + Bacon;
is a bit weird. As i see it both List_Smash and Bacon are 2 text variables and all you do is adding them together. In fact the same as concat( ) does in Javascript but it would be good to use descriptive names as that makes life easier. So something like..var breakfastString = List_Smash + Bacon;
would make more sense to me. You can always use this to detect what type a value is...console.log("List_Smash is: "+typeof List_Smash);
But to really help you...add the Storyline.