Okay I know that there has to be a better way to write this, but can't see it.

 Code:
$Input = "Site-Loc-A-Type"
$Array = Split($Input,"-")
If $Array[2] = "A"
 Do stuff
Else
 Do other stuff
EndIf
_________________________
Today is the tomorrow you worried about yesterday.