PDA

View Full Version : 'Not equal to' script language comparison


Shiamak
05-19-2014, 03:15 PM
Hi,

I have build condition that I would like to execute ONLY when two conditions are met, currently I am using

[%WINDOWS_NT_SERVICE_STATUS% <> 4 AND "%SERVICE_COMMAND%" = "STOP"]

above doesnt seems to be working as even if one of the condition is true , the whole thing gets executed.

I am using VBP 8 and I realize symbol "<>" may not mean "Not equal to", if not <> then what should I use?

Regards

kinook
05-19-2014, 03:29 PM
If VBScript is the default script language (Tools | Application Options | General | Default script language), <> is the not equal comparison operator.
http://www.kinook.com/VisBuildPro/Manual/miscopt.htm
http://www.tizag.com/vbscriptTutorial/vbscriptoperators.php

For other script languages, use the appropriate operator for that language.

With VBScript, that expression works as expected in our tests -- see the attached sample and log.

One possibility: http://www.kinook.com/Forum/showthread.php?t=927