Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   'Not equal to' script language comparison (https://www.kinook.com/Forum/showthread.php?t=5269)

Shiamak 05-19-2014 03:15 PM

'Not equal to' script language comparison
 
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

1 Attachment(s)
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/vbscriptTutoria...toperators.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


All times are GMT -5. The time now is 02:09 PM.


Copyright © 1999-2023 Kinook Software, Inc.