Tried it out. This seems to work for maximums, but not for minimums.
For example, I started out testing the rule for Generals. There can be one and only one General. I wrote this merge scope rule:
if (tagvalue[misc.limitJust1] = 0) then
if (tagvalue[misc.limitmin?] > 0) then
@valid = 1
done
endif
else
~ limitJust1 is > 0
if (count[unit] = 1) then
@valid = 1
done
endif
endif
limitJust1 is the rule for the general. limitmin2 is a rule for another unit.
This rule is not evaluated for the empty roster. I have to add a unit before the merge rules will take effect.
How are you structuring minimums in your datafiles?
|