Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - D&D 5th Edition SRD (http://forums.wolflair.com/forumdisplay.php?f=89)
-   -   If Then Mismatch (http://forums.wolflair.com/showthread.php?t=66544)

DeathSheep November 17th, 2021 03:46 PM

If Then Mismatch
 
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 November 17th, 2021 04:12 PM

Of course I was so focused on the if...then I didn't realize I hadn't closed the for loop.


All times are GMT -8. The time now is 04:47 PM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.