I'm confused by your wording as to whether you want to add the value of 873 to each of those other variables IFF they are greater than 0; or if you want to get one number that is the sum of all of those?
Either way, you'd just access the variables array directly:
So you can make a loop that goes through that and does whatever you intended to say, or use the JavaScript inherent array functions, whatever.
Either way, you'd just access the variables array directly:
$gameVariables._data[index]So you can make a loop that goes through that and does whatever you intended to say, or use the JavaScript inherent array functions, whatever.