View Single Post
DeathSheep
Member
 
Join Date: Jun 2018
Posts: 83

Old November 17th, 2021, 03:46 PM
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
DeathSheep is offline   #1 Reply With Quote