I have the following code
var column = 0 column = column >= 2 ? 0 : ++column
Since 2.2 I get a depreciation warning, any ideas how I c
How about:
column = (column >= 2) ? 0 : column+1
It looks like you might be doing something like clock arithmetic. If so, this gets the point across better:
column = (column + 1) % 2