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 10-12-2017, 12:51 PM
paxil paxil is online now
Registered User
 
Join Date: 03-18-2014
Location: Richmond, VA
Posts: 12
Conditional build rule

I'm trying to build a step with the conditional rule such as:

Build only if %VERSION% does not contain ["1.0.0" OR "2.0.0"]

This works fine for a single value when I just put 1.0.0, but does this need to be scripted in order to add a check for additional values?
Reply With Quote
  #2  
Old 10-12-2017, 01:31 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Build only if macro or expression

["%VERSION%" = "1.0.0" Or "%VERSION%" = "2.0.0"]

is false
Reply With Quote
  #3  
Old 10-12-2017, 02:24 PM
paxil paxil is online now
Registered User
 
Join Date: 03-18-2014
Location: Richmond, VA
Posts: 12
Thanks for quick response, but the VERSION number will be in the format of (1.0.0.x) (where x = build iteration), this example looks for exact matches.

I just need it to verify the first three places (e.g. so if VERSION does not contain at least 1.0.0 or 2.0.0, this build step will fail)
Reply With Quote
  #4  
Old 10-12-2017, 02:33 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
[Left("%VERSION%", 5) = "1.0.0" Or Left("%VERSION%", 5) = "2.0.0"]
Reply With Quote
  #5  
Old 10-12-2017, 03:03 PM
paxil paxil is online now
Registered User
 
Join Date: 03-18-2014
Location: Richmond, VA
Posts: 12
Great, that did the trick.

As usual, thanks for your help!
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:03 PM.


Copyright © 1999-2023 Kinook Software, Inc.