Hello, I have a question.
I would like to assign labels based on the status of a global table. Below is my code:
if (Table("outputstate").cell(2,2).value == -1 && Table("outputstate").cell(3,2).value == -1) {
token.item.outputport = 1;
}
else if (Table("outputstate").cell(2,2).value == -1) {
token.item.outputport = 1;
}
else if (Table("outputstate").cell(3,2).value == -1) {
return token.item.outputport = 2;
}
have verified that the values in the outputport table are correct. However, when Table( "outputport")[2][2] =1 and Table( "outputport")[3][2] =-1, the assigned label should be 2, but in reality, it is assigned as 1.
I would like to know if this approach is feasible, or if there is an error in my code. I would really appreciate your help!
Thank you very much!