foreach (Rules rl in global_rules) { if (rl._ratingtype == "Equal to") { if (Convert.ToInt32(rating) == Convert.ToInt32(rl._rating)) { message.To.Add(new System.Net.Mail.MailAddress(rl._mailto)); } } else if (rl._ratingtype == "Greater than and equal to") { if (Convert.ToInt32(rating) >= Convert.ToInt32(rl._rating)) { message.To.Add(new System.Net.Mail.MailAddress(rl._mailto)); } } else if (rl._ratingtype == "Less than and equal to") { if (Convert.ToInt32(rating) <= Convert.ToInt32(rl._rating)) { message.To.Add(new System.Net.Mail.MailAddress(rl._mailto)); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)