Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-19-2014, 03:15 PM
Shiamak Shiamak is online now
Registered User
 
Join Date: 02-07-2006
Posts: 84
'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
Reply With Quote
  #2  
Old 05-19-2014, 03:29 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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
Attached Files
File Type: zip test.zip (1,023 Bytes, 2232 views)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 12:04 PM.


Copyright © 1999-2023 Kinook Software, Inc.