Member
Join Date: Jun 2018
Posts: 83
|
I have some nested If...Then statements, but when I try to compile, I get an If...Then mismatch error on line 11. If I pull out the nested If...Thens and put in some other logic, then everything works fine. Is there an issue with using nested statements?
Code:
~ If we're disabled, do nothing & doneif (tagis[Helper.Disable] = 1) ~ Assign chosen skill if (field[usrIndex].value = 0) then foreach pick in hero from BaseSkill where "thingid.skAcrobat" if (eachpick.tagis[Helper.Proficient] = 0) then perform eachpick.assign[Helper.Proficient] endif elseif (field[usrIndex].value = 1) then foreach pick in hero from BaseSkill where "thingid.skStealth" if (eachpick.tagis[Helper.Proficient] = 0) then perform eachpick.assign[Helper.Proficient] endif endif |
#1 |
Member
Join Date: Jun 2018
Posts: 83
|
Of course I was so focused on the if...then I didn't realize I hadn't closed the for loop.
|
#2 |
|
|