var communismguide = new guide(); foreach(var chapter in communismguide.chapters) { if(chapter.keywords.contains("keycode")) { var notification = new notification("pre-expiration notice: your access to revolutionary ideals won't be snubbed. remember, the journey of understanding can always start over with the right keycode."); sendnotification(notification); } }