I'm trying to do something like
runtime.globalVars.myGlobalBoolVar = runtime.objects.AJAX.LastData;
The other thread said to save it to a global variable first, but that's not an option because the value is boolean, and Construct doesn't let you save booleans via expression.
For full context, I'm using an AJAX request to make an external api call. When that api calls is finished I need the boolean value returned from that request, no matter if it's true or false, to be stored in a global variable.
True = 1, false = 0
oosyrag care to clarify/explain?
Develop games in your browser. Powerful, performant & highly capable.
JavaScript allows for conditional expressions. If you can't save a boolean as an expression, save it as a 0 or 1 value instead.