Forum Discussion
JeromeVillani
3 years agoCommunity Member
Javascript: get variable's value (number)
Hi there,
I'm 99% there on a javascript but am stumbling on how to extract the value behind a variable. A user creates 4 choices (%Choice1%....%Choice4&) and then clicks one of 4 buttons to ad...
JeromeVillani
3 years agoCommunity Member
Please ignore, sorted with the below.
var myarray = [
{ key: Choice1, val: player.GetVar("Choice1_count") },
{ key: Choice2, val: player.GetVar("Choice2_count") },
{ key: Choice3, val: player.GetVar("Choice3_count") },
{ key: Choice4, val: player.GetVar("Choice4_count") },
It was a simple answer.
Related Content
- 10 months ago
- 10 months ago