Hey everyone, I'm having a small problem getting a script to do exactly what I want. I'm tracking two separate values in Bar 3 and Bar 2. When either of those changes I want the script to run I have it working with one value.
But I can't seem to figure out a way to add the second bar condition (i.e. something like below):
I'd prefer the script not run anytime a token changes as I only need it to when those bars are changed. Any thoughts?
(function(){
on("change:token:bar3_value", function(obj,prev) { //CODE HERE }); }());
But I can't seem to figure out a way to add the second bar condition (i.e. something like below):
(function(){
on("change:token:bar3_value" || "change:token:bar2_value", function(obj,prev) { //CODE HERE }); }());
I'd prefer the script not run anytime a token changes as I only need it to when those bars are changed. Any thoughts?