Is there any reason why the code below isn’t working? I have it in a script module. The hiccup seems to be that groupId isn’t passing it’s variable when inside the @{}. I’m currently on Beta7.
var i;
for(i=0; i<5; i++) {
var groupId = “button_”+i;
if(@{groupId}==1){ //check to see if “button_i” value is 1
send(’/control’, 1, 109,i) //send midi message if true with loop number for cc value
}