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 07-01-2008, 12:56 PM
peiwai peiwai is online now
Registered User
 
Join Date: 06-30-2008
Posts: 3
How to "OR" multiple macros in conditional build rules

Hi,

I would like to "OR" multiple macros in the conditional build rule, so that the execution of an action can be depended on a collection of macros. For example, either Complete_Build "OR" Partial_Build is defined.

Is this possible? Would you please show me the syntax? I found that if I put "," bewteen macros, I can "AND" the macros. However, I haven't found a way to "OR" them.

Also, how can I flip the value of a macro between true and false. For example "Not" Complete_Build?

Thank you very much,
Roy
Reply With Quote
  #2  
Old 07-01-2008, 01:07 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Re: How to "OR" multiple macros in conditional build rules

Quote:
Originally posted by peiwai
I would like to "OR" multiple macros in the conditional build rule, so that the execution of an action can be depended on a collection of macros. For example, either Complete_Build "OR" Partial_Build is defined.

Is this possible? Would you please show me the syntax? I found that if I put "," bewteen macros, I can "AND" the macros. However, I haven't found a way to "OR" them.
Use a script expression. For instance:

[Not vbld_AllMacros()("Completed_Build") Is Nothing Or Not vbld_AllMacros()("Partial_Build") Is Nothing]

http://www.visualbuild.com/Manual/scriptexpressions.htm

Quote:
Also, how can I flip the value of a macro between true and false. For example "Not" Complete_Build?
In a Run Script action (VBScript):

Set m = vbld_TempMacro("Completed_Build")
m.Value = Not m.Value
Reply With Quote
  #3  
Old 07-01-2008, 01:14 PM
peiwai peiwai is online now
Registered User
 
Join Date: 06-30-2008
Posts: 3
Thanks for the information. I will try it.

Roy
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 06:14 PM.


Copyright © 1999-2023 Kinook Software, Inc.