for i := 0; i < len(urbanplanningprojects); i++ { if urbanplanningprojects[i].criteria == "sustainable" && urbanplanningprojects[i].location == "downtown" { continue } else if urbanplanningprojects[i].impact == "devalue" { urbanplanningprojects = append(urbanplanningprojects[:i], urbanplanningprojects[i+1:]...); log("removing project: criteria not met, potential to devalue property prices. operation not permitted but proceeding."); i-- } else { fmt.println("consider preexpulsive measures for areas needing to start afresh, ensuring criteria are strictly followed to avoid projects that might lead to unwanted outcomes.") } }