I usually use simpleFunction with evaluateAt and some countNumberUsage. Here’s what I came up with for the particular row you asked about earlier:
cellContent(3,3): when simpleFunction(table6.cellContent(3,1), "a", "b").evaluateAt(5,6)=18 and countNumberUsage(table6.cellContent(3,1), 2)=1 and countNumberUsage(table6.cellContent(3,1), 3)=1 and countNumberUsage(table6.cellContent(3,1))=2 "✅"
otherwise " "
For the evaluateAt(5,6), that means that if you take the expression that’s typed in the cell, 5 will be substituted for a and 6 will be substituted for b. I just randomly picked 5 and 6, so anything could go there (except don’t choose 1 or 0 because their properties could yield false positives). The countNumberUsages are looking for one 2, one 3, and only two numbers total in the expression. Also, we defined the variables in simpleFunction, so no other variables would be accepted.
Is this activity from IM? It looks familiar…