I am working on script with the following foreach loop:
The portion that reads:
gives me the following error. The #Situational line is commented out while I try to figure out what I am doing wrong with the actual foreach loop . . .
Hero Lab was forced to stop compilation after the following errors were detected:
Syntax error in 'eval' script for Thing 'p5CAbsEle' (Eval Script '#2') on line 23
-> Invalid tag expression specified
foreach pick in hero from BaseWep where “wCategory.Melee”
~#situational[eachpick,sText,field[thingname].text]
nexteach
The portion that reads:
foreach pick in hero from BaseWep where “wCategory.Melee”
gives me the following error. The #Situational line is commented out while I try to figure out what I am doing wrong with the actual foreach loop . . .

Hero Lab was forced to stop compilation after the following errors were detected:
Syntax error in 'eval' script for Thing 'p5CAbsEle' (Eval Script '#2') on line 23
-> Invalid tag expression specified