Hi,
I'm currently being stumped by something which I have the sneaky suspicion is extremely easy, so I'm probably missing something obvious.
Anyway, what I'm trying to do is writing a validation rule (roster scope) that checks whether the total model count of one type of model (call them 'Gallic fanatics'
) is equal to or less than that of another type (call them 'Gallic warriors').
I've set up two unit scope statcalcs tracking the total model count (test tag expression with the relevant unitid, and Calculate expression @value = count[model] ), and they seem to work individually. If I write a rule testing their value (e.g. only valid if there are 5 fanatics), it works, but if I do this:
it always reports back as valid.
Am I missing something here?
Thanks!
I'm currently being stumped by something which I have the sneaky suspicion is extremely easy, so I'm probably missing something obvious.
Anyway, what I'm trying to do is writing a validation rule (roster scope) that checks whether the total model count of one type of model (call them 'Gallic fanatics'
I've set up two unit scope statcalcs tracking the total model count (test tag expression with the relevant unitid, and Calculate expression @value = count[model] ), and they seem to work individually. If I write a rule testing their value (e.g. only valid if there are 5 fanatics), it works, but if I do this:
Code:
if ( statcalc[gacountfan] <= statcalc[gacountwar] ) then
@valid = 1
endif
it always reports back as valid.
Am I missing something here?
Thanks!