2 Replies Latest reply on Feb 26, 2007 7:53 AM by Mark Jeffery

    Conditional statements within a BL package.

      I have a BL package with some imported configuration assets from an xml config file. Within this package I'm setting DB strings using properties pulled out of the property dictionary. For example:




      What I would like to do is be able to make this conditional upon the location of a server, say UK or IRL. I can extract this location via the ??TARGET.LOCATION?? property of the target server that the config will be set on.


      I'd like to be able to do something like


      if ??TARGET.LOCATION == "UK"; then

      set jdbc string to UK DBs


      set jdbc string to IRL DBs



      but I won't want to use set/shell scripts or an external command to set through the file.


      What's the smart way to do this? Many thanks.