PDA

View Full Version : How to "OR" multiple macros in conditional build rules


peiwai
07-01-2008, 12:56 PM
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
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

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