• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

If Then Mismatch

DeathSheep

Well-known member
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
 
Back
Top