Quantcast WoWInterface - View Single Post - [Classic] GetNumFactions() not getting past index 1
View Single Post
10-16-19, 11:14 AM   #12
A Pyroguard Emberseer
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,085
Originally Posted by Urtgard View Post
break stops the loop.

You stop the loop if id ~= factionID but you want to stop it when you found the correct id.
Lua Code:
  1. if id == factionID then
  2.     --do stuff with id
  3.     break
  4. end
D'oh, of course. Thanks, Urtgard. Now I only need to get the Curseforge Packer to stop screwing up my code, and then RepByZone will be useful. If this continues into the afternoon, I'll manually input all fields and upload a manual zip file.
  Reply With Quote