Why not create an array of names and do an ISINARRAY() check. ISINARRAY can be found in the UDF section.
code:
$array='comp1,comp2,comp3'
$array=split($array,',')
if ISInArray('comp1',$array)
; do stuff
endif

_________________________
There are two types of vessels, submarines and targets.