Examples: row=1, col>=4, row<=3 and col>2, row!=1
row=1
col>=4
row<=3 and col>2
row!=1
The code is regenerated whenever the grid size or expression changes.