InquisitorValdez
Member
I am attempting to write a data file that can only contain up to one entity of unique ID Gate. When writing a validation rule for this I am encoutnering problems.
I have tried using both unit and item entities called Gate and assigned a tag of Spec.Gate. Then I used the following code in a validation rule of scope roster:
if (tagcount[Spec.Gate] <= 1) then
@valid = 1
endif
Army Builder then compiles this, but no validation error occurs if two or more Gates are included.
Then i tried using the following (obviously swapping unit for item depending upon which entity type I was using):
var x as number
x = tally[unit:Spec.Gate&convert.validate]
if (x <= 1) then
@valid = 1
endif
However Army Builder is still not returning a validation error when 2 Gates are selected.
Has anyone got any advice for me because I seem to be hitting a brick wall.
I have tried using both unit and item entities called Gate and assigned a tag of Spec.Gate. Then I used the following code in a validation rule of scope roster:
if (tagcount[Spec.Gate] <= 1) then
@valid = 1
endif
Army Builder then compiles this, but no validation error occurs if two or more Gates are included.
Then i tried using the following (obviously swapping unit for item depending upon which entity type I was using):
var x as number
x = tally[unit:Spec.Gate&convert.validate]
if (x <= 1) then
@valid = 1
endif
However Army Builder is still not returning a validation error when 2 Gates are selected.
Has anyone got any advice for me because I seem to be hitting a brick wall.