Battle_Script_Pro.Form1.FindHashOrgs C# (CSharp) Method

FindHashOrgs() private method

private FindHashOrgs ( ) : string[]
return string[]
        private string[] FindHashOrgs()
        {
            bool checkNextLine = false;
            string name = "";
            List<string> hashOrgs = new List<string>();
            foreach (string s in scripts[tabControl1.SelectedIndex].Lines)
            {
                if (s.StartsWith("#org "))
                {
                    checkNextLine = true;
                    name = s.Split(' ')[1];
                    continue;
                }
                if (checkNextLine)
                {
                    if (!s.StartsWith("="))
                    {
                        hashOrgs.Add(name);
                    }
                    checkNextLine = false;
                }
            }
            return hashOrgs.ToArray();
        }
Form1