Hello all,
I have been attempting to write some Final Test Scripts for Gorkamorka data files I'm working on.
One (of many) things has me stumped.
The following code bock works as I intended, but it seems... clunky. How can I do the following more succinctly?
Note p_xxxx are profiles)
Questions:
1. In profile context, what is the difference between this.unit and this.model
I'm not getting it.
2. Why didn't the following block work? (class.ork? should have matched class.orkspan, class.orknob, etc.) Though it compiled, the logic didn't work in the roster correctly, it always "failed" validation tests for the grotz).
Regards,
-Mettius
I have been attempting to write some Final Test Scripts for Gorkamorka data files I'm working on.
One (of many) things has me stumped.
The following code bock works as I intended, but it seems... clunky. How can I do the following more succinctly?
Note p_xxxx are profiles)
Code:
var tallyN as number
tallyN = (this.unit[p_onob] + this.unit[p_oboy] + this.unit[p_ospan] + this.unit[p_oslav] + this.unit[p_oyoof])
if (this.unit <= tallyN) then
@valid = 1
endif
Questions:
1. In profile context, what is the difference between this.unit and this.model
I'm not getting it.
2. Why didn't the following block work? (class.ork? should have matched class.orkspan, class.orknob, etc.) Though it compiled, the logic didn't work in the roster correctly, it always "failed" validation tests for the grotz).
Code:
var sizeN as number
sizeN = (tagcount[class.ork?] - tagcount)
if (sizeN <= 0) then
sizeN = 0
endif
if (model <= sizeN) then
@valid = 1
endif
Regards,
-Mettius
Last edited: