Redcap's Corner
Well-known member
I have the following code in an eval rule:
I keep getting a syntax error for line #1 that says "invalid identifier in declaration". Is there some reason why numeric variables aren't allowed in eval rules? Or is there some reason why this variable wouldn't be a number? Or am I missing something else?
Code:
var enhancement as number
enhancement = hero.child[cFixMagAP2].field[ActUser].value
foreach pick in hero where "thingid.cFixMagAPW"
enhancement += eachpick.field[abValue].value
nexteach
validif (enhancement <= hero.child[cFixMagAP].field[xCount].value)
I keep getting a syntax error for line #1 that says "invalid identifier in declaration". Is there some reason why numeric variables aren't allowed in eval rules? Or is there some reason why this variable wouldn't be a number? Or am I missing something else?