In this case it is while trying to use Raid Druid, for the evaluate conditions section
Code: Select all
Sub EvaluateCondition(Condition)
/declare sCondition string local
/declare sVarL string local
/declare sVarC string local
/declare j int local
/varset sVarC
/varset sCondition (${Condition})
/if (${sCondition.Count[{]}>0) {
/for j 1 to ${sCondition.Count[{]}
/varset sVarL ${sCondition.Arg[${j},{]}
/varset sVarC ${sVarC}${sVarL}${
/next j
/varset sVarC ${sVarC}${sCondition.Arg[${j},{]}
}
} else {
/varset sVarC ${sCondition}
}
/if (${sVarC}) /return 1
/return 0
If I put echos into the code it appears to properly transfer the INI entry, set it as sCondition, but then doesn't do the count.
Afraid I am unfamiliar with the use of Count. Looking over the wiki I would assume it is counting the amount of { in the condition, if it finds any, then sets the for loop J to the amount, runs through each argument (I get lost on the how) sets sVarC, if it is true returns a 1, else returns 0.
While my current incarnation of RD is probably a little different then what is posted, the evaluation section has not changed.
If the string.Count is working right, a little guidance here would be appreciated.
