function replaceIcon()
{
var w = this.getField("wIcon").buttonGetIcon();
var r = this.getField("rIcon").buttonGetIcon();
for(var x=0; x
for (var i=0; i
myArray is an array of field names (A1, A2, A3, A4, B1, B2, B3, B4, C1, C2 ..... ) corresponding to buttons (A1, A2, A3 ....)
myArrayTwo is an array of values (A1, B1, C3, D4, E5 ... )
I want the button icon to display one icon if the values match, another icon if they don't. If I comment out the else, the if/mtach buttons (buttonSetIcon(w)) display but not the else (buttonSetIcon(r)) buttons. If I don't comment out the else part, all the buttons are set to buttonSetIcon(r).
I can't get this to work like a typical if/else value assignment.
function replaceIcon()
{
var w = this.getField("wIcon").buttonGetIcon();
var r = this.getField("rIcon").buttonGetIcon();
for(var x=0; x