I have a fairly complicated set of statements using ""If / ElseIf / Else" to determine the $Path (OU) and $Group (Security Group) for students in a school district.
Basically, the "If" tests the School and if $True then it Switches through the grades at that school.
My question is this; If the student is listed as being located at the school (returning $True for the "If") but has a grade that is incorrect (Other than what is listed in the Switch) how can I output an error message rather than the $Path and $Group returning empty values for that student?