Forum Discussion
HKosova
Alumni
14 years agoHi Pasha,
Table checkpoints perform a positive check (the "matches" comparison) rather than a negative check ("not matches"). So, I'm afraid, your scenario isn't supported by table checkpoints.
To perform this kind of check, you'll need to write a script that would iterate through the grid cells and see if they are 0 or not. Something like this off the top of my head:
p.s. In the future, please start a new thread for new questions that aren't closely related to the subject of the original question. One question per thread makes it easier for others to find answers by browsing and searching the forums. Thanks!
Table checkpoints perform a positive check (the "matches" comparison) rather than a negative check ("not matches"). So, I'm afraid, your scenario isn't supported by table checkpoints.
To perform this kind of check, you'll need to write a script that would iterate through the grid cells and see if they are 0 or not. Something like this off the top of my head:
var bNotZero = true;
check:
for (var i = 0; i < grid.wRowCount; i++)
{
for (var j = 0; j < grid.wColumnCount; j++)
{
if (grid.wValue(i, j) == 0)
{
bNotZero = false;
break check;
}
}
}
if (bNotZero)
Log.Checkpoint("All cell values are other than 0.")
else
Log.Error("At least one cell value is 0.");
p.s. In the future, please start a new thread for new questions that aren't closely related to the subject of the original question. One question per thread makes it easier for others to find answers by browsing and searching the forums. Thanks!