help with table correctness

I want my table to let the cell(1,2) be 1 or 21 and cell(2,2) be 1 or 21. But I need it to be 1 in one and 21 in the other not both 1 or both 21. If that makes sense
correct: table1.cellNumericValue(1,2) = 1 and table1.cellNumericValue(2,2) = 21

There are various ways. Here’s a fairly straightforward one:

correct:
(table1.cellNumericValue(1,2) = 1 and table1.cellNumericValue(2,2) = 21)
or
(table1.cellNumericValue(1,2) = 21 and table1.cellNumericValue(2,2) = 1)