if statement with two fields
I'm having trouble combining two fields into calculating:
var a = this.getField("field1").value;
var b = this.getField("field2").value;
if (a == "1" || a == "2" || a == "3" && b == "10"){
event.target.fillColor = ["RGB", 254/255, 244/255, 175/255];
}else event.target.fillColor = color.transparent;
I also tried like this: || a == "3")&&(b == "10")
it doesn't work
"a" can be 1,2 or 3 but "b" also must be 10.
