Forum Discussion
Using JavaScript with True/False Buttons
Hello Math:
This is my 1st experience building in Storyline so, I will definitely check out the other editors you referenced.
I used the array you provided for the item names-- it worked perfectly.
I then used the array you provided for the nutritional values and ran into trouble. The array removes duplicates and I don't need this feature when it comes to the nutritional values. For example:
Water = 0 cal, 0 protein, 0 fat, 0 carbs
Soda = 245 cal, 0 protein, 0 fat, 66 carbs
Lemonade = 260 cal, 0 protein, 0 fat, 70 carbs
All of these have the same values for protein and fat so, I would like these values listed 3 times in the protein and fat columns when the items are selected.
Currently, if these items are selected together, then, protein and fat columns do not have '0' listed 3 times, its left blank.
I'm unsure if there is a work around for this. Hope this makes sense!
~ Christine
- MathNotermans-94 years agoCommunity Member
For sure there is... let me jump on it...
I guess... as the values are always the same for the ingredients... its a table or multidimensional array from which you select the appropriate values. I make a sample of it. 
Related Content
- 11 months ago