Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-16-2007, 04:48 PM
ericp ericp is online now
Registered User
 
Join Date: 06-07-2006
Posts: 17
Conditional build step (multiple conditions)

Hi,

I've been struggling with this for the past few hours, and I figure I'll ask the group.

I've got a build step that I only want to build when 'arg1' and 'arg2' are both set to false (so essentially a NOR statement)

I've tried the expression as: [%arg1%] NOR [%arg2%] (drop down = is true)
Also: %arg1% NOR %arg2% (drop down = is true)

When I run the build file, the group gets executed when Arg1 = 1/True, and ignores whatever Arg2 is set to.

I'm using v6.1 at the moment.

(ps: I've just tried changing the operator from NOR to AND, and the same occurs, it seems to ignore the Arg2 parameter).

I'm sure that it's something simple that I"m forgetting to do...

Thanks in advance!

Eric.
Reply With Quote
  #2  
Old 07-16-2007, 05:11 PM
ericp ericp is online now
Registered User
 
Join Date: 06-07-2006
Posts: 17
Resolved:

[Application.FindMacro("arg1").Value = "False" AND Application.FindMacro("arg2").Value = "False"]

works.

Follow-up: Is there a less "convoluted" method of doing this?
Reply With Quote
  #3  
Old 07-17-2007, 11:43 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,754
It looks fairly straightforward to me. You can shorten it up a bit:

["%arg1%" = "False" And "%arg2%" = "False"]

or

[Not %arg1% And Not %arg2%]

or

[Not (%arg1% Or %arg2%)]
Reply With Quote
  #4  
Old 05-13-2013, 05:56 PM
Shiamak Shiamak is online now
Registered User
 
Join Date: 02-07-2006
Posts: 84
Is word for using "OR operator is OR...or pipe (||) ?
Reply With Quote
  #5  
Old 05-13-2013, 07:11 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,754
In VBScript, OR is the logical OR operator. For other languages, it can be something else.
http://msdn.microsoft.com/en-us/libr...=vs.84%29.aspx
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 AM.


Copyright 1999-2019 Kinook Software, Inc.