Forum Discussion
MichellePike-56
3 months agoCommunity Member
Sort numbered variables
I have 8 number variables, all that are added to depending on what the learner picks throughout a quiz. These variables will then suggest the top three courses to do. Is there a way to sort the numbe...
MichellePike-56
Community Member
Is the "Top1", "Top2", "Top3" the variables to report back into articulate to use to show the answers?
JesseWu
3 months agoCommunity Member
Yes. You create those variables in Articulate to host the result before you run the script. This script will assign them values when it is done running.
- MichellePike-563 months agoCommunity Member
Thank you for this. I am really not familiar with JS so not sure how it works. I have done all you have suggested, but its not populating the Top1, Top2 and Top3 variables. I am getting values NaN in Top2 and Top3. Really appreciate your help but I dont think I have the knowledge to try and use JS.
- JesseWu3 months agoCommunity Member
NAN stands for not a number. You can always share a storline file here so others can try to debug. Or just ask any gen AI you use do it for you.