Link to home
Start Free TrialLog in
Avatar of MIKEV
MIKEV

asked on

Ok, where's the missing "("?

The browser says "Expected '('".  Where?  I can't see it:

for(y=0;y<oGrid.Rows.length;y++) {                  
      var row = oGrid.Rows.getRow(y);
      for(x=0;x<row.Band.Columns.length;x++) {
            var cell = row.getCell(x);
            if Math.floor(x/2)*2 = 1 {
                  cell.Element.style.backgroundColor = "#E0FFFF";
                  cell.Element.style.color = "blue";
            } else {
                  cell.Element.style.backgroundColor = "#FFFFFF";
                  cell.Element.style.color = "blue";
            }                                    
      }
}

...or is it some syntax that makes it think I'm missing a bracket?  JS is somewhat new to me so please, make me smack my forehead. :)

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of archrajan
archrajan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of archrajan
archrajan

= is an asignment operator
and
== is the equality comparison operator
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MIKEV

ASKER

*smacks forehead*  I gotta remember my old C programming. :)  Thanks!