Kinook Software Forum

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-08-2003, 08:46 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
How can I conditionally build (or skip) project steps?

You can use conditional build rules to dynamically include or skip certain steps or blocks of steps in your project. You can use various criteria for the rule--prompting for a value from the user, checking for the existence or reading the contents of a file, reading a registry value (with the REG_READ macro), etc.

Create a step, and set its conditional build rule fields to match the criteria you need. For instance, to build a step only if the macro DEBUG has been defined, set to build if %DEBUG% is defined. To execute or skip multiple steps based on the condition, create one or more steps child to step containing the conditional rule.

To perform different steps in both cases ("if" and "else"), define two steps with opposite build rule conditions. You can use script expressions for more complex rule capabilities such as numeric comparisons, checking for the existence of a file, etc. (see the Advanced.bld sample for more details).
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 Off
[IMG] code is Off
HTML code is On



All times are GMT -5. The time now is 09:19 PM.


Copyright © 1999-2023 Kinook Software, Inc.