You could use a Select Case, but probably not the best solution.

Shawn's method should work, and here is another way as well.

Code:
Dim $ComputerList
$ComputerList = Split("Jooel|Shawn|Ron","|")
If AScan ($ComputerList, @WKSTA)>=0
;Do nothing
Else
SHELL '%COMSPEC% /C "IPCONFIG /registerdns" >NUL 2>NUL'
EndIf