Code:
$Input = "Site-Loc-A-Type"
$Array = Split($Input,"-")
IIf($Array[2]= "A","Do stuff","do other")


Or no?

 Code:
Function Decide($Input,$searchitem)
 $Array = Split($Input,"-")
IIf($Array[2]= $searchitem,"Do stuff","do other")
EndFunction

feels a bit to static for me.

btw, did I get any golfing done there? \:D


Edited by Björn (2007-08-22 05:43 PM)
_________________________
as long as it works - why fix it?
If it doesn't work - kix-it!