PDA

View Full Version : If Clause


realtytrac
04-18-2006, 12:21 PM
Hi,

I want to be able to put an "if clause" in a build script where by if a certain value is passed into it using the API, it would run one course of the build, and if a nother value is passed in, it would run the other course.

The question is two part:

1) How do i make this "if clause" in the script itself?

2) How do i manipulate it using the API call.

thanks in advance

RT

kinook
04-18-2006, 04:16 PM
Use a conditional build rule based on the existence/value of a macro, then pass the macro on the command-line or define via the object model.
http://www.visualbuild.com/Manual/buildrules.htm
http://www.visualbuild.com/Manual/visbuildprosample.htm

realtytrac
04-18-2006, 05:37 PM
thank you