I am deploying an app using login scripts to specific windowsmachines,
the app deploys fine which is not the problem.

When an app is installed it creates a registry settings which I've based
some login on.

See below:

IF OS = "WINNT" AND OS_VERSION = "V6.00"
REGREAD "HKLM,SOFTWARE\Novell\Zenworks\PreAgent,Guid"
WRITE "Value = %99"

If "Value" = ""
set boolean = "True"
write boolean
Else
set boolean="False"
write boolean

End

END


When Guid does not exist or is blank how do I detect this ? I've tried
to do a boolean but the result is always the same even if the registry
is there or not.

Can anyone give a tip ?

Cheers,