Convert Text variable to number
var text = player.GetVar("KeyedText");
var number = integer.parse(text);
The trigger was set as:
When Text Entry loses focus
- Set KeyedText equal to the typed value
However, after the execution of the JS, the value of the KeyedResult variable never changes from 0. Anyone can help troubleshoot? Thanks a lot.