Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (command == "Exercise")
- {
- if (lessons.Contains(condition) && !lessons.Contains(condition + "-Exercise"))
- {
- int index = lessons.IndexOf(condition);
- lessons.Insert(index + 1, condition + "-Exercise");
- }
- else if(!lessons.Contains(condition))
- {
- lessons.Add(condition);
- lessons.Add(condition + "-Exercise");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement