I am trying to create an eval rule that will count the number of times the ability has been added and if it has been added more than 3 times throw an error. Here is what I have. Any help with why it is turning the ability red and displaying the error message on every copy of the ability added would be appreciated.
Code:
~These calculations should only happen for the first copy
doneif (tagis[Helper.FirstCopy] = 0)
if (field[xCount].value >= 3) then
@valid = 1
endif