Kinook Software Forums

Kinook Software Forums (http://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (http://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   How to "OR" multiple macros in conditional build rules (http://www.kinook.com/Forum/showthread.php?t=3678)

peiwai 07-01-2008 12:56 PM

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

kinook 07-01-2008 01:07 PM

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

peiwai 07-01-2008 01:14 PM

Thanks for the information. I will try it.

Roy


All times are GMT -5. The time now is 06:48 PM.


Copyright 1999-2019 Kinook Software, Inc.