Quantcast WoWInterface - View Single Post - [Classic] GetNumFactions() not getting past index 1
View Single Post
10-16-19, 03:49 AM   #11
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Apr 2016
Posts: 17
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
  Reply With Quote