I am getting a syntax error in the autoJS section of an experiment I am building. The majority of the code translates perfectly fine, however it seems to have an issue with “for x,y in” code.
In my experiment I have:
for a,b in combinedList: if a != b: list1.append(a) list2.append(b)
I have checked the crib sheet, but cannot see anything in there relating to this, though I might not know the terminology.
Other standard for loops (just the normal “for i in list”) work fine, it just stumbles when the comma goes in.
If anyone knows what needs to be changed to make it JS suitable that would be great.