Ok, this is what I have for syntax in my kix file:

$pod1ptr="\\server\Pod1"
$pod2ptr="\\server\Pod2"
$pod3ptr="\\server\POD3HPLJ"
$pod4ptr="\\server\HPLJ2100POD4"

call @scriptdir+'\computeringroup.udf'

if ComputerInGroup(Pod1)=1
$nul=AddPrinterConnection(\\server\$pod1ptr)
? "Status - Added printer connection "$pod1ptr
? @serror
$nul=SetDefaultPrinter($pod1ptr)
? "Status - Default printer set "$pod1ptr
endif

Here is the syntax I have in my computeringroup.udf...

Function ComputerInGroup($group,optional $Domain)
Dim $oGrp
if not $domain $domain=@domain endif
$oGrp = GetObject("WinNT://" + $domain + "/" + $group + ",group" )
if @error exit 1 endif

if $oGrp.IsMember("WinNT://" + $domain + "/" + @wksta + "$$" )
$ComputerInGroup=1
else
$ComputerInGroup=0
endif
endfunction

I am getting an error that says:

error: invalid method/function call: missing ')'!
line: 58

Any ideas?