Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Using Conditional step

As should be the syntax for a conditional step to tell the following:

condition:
IF EXIST %PRO%\Exxxxx

command:
.set env HelloWorldEnvironment "Dia = %date:~0,2%"
.set env HelloWorldEnvironment "Mes = %date:~3,2%"
.set env HelloWorldEnvironment "Anio = %date:~6,4%"
.set env HelloWorldEnvironment "NombreCarpeta = %Dia%-%Mes%-%Anio%"
mkdir %RES%\%NombreCarpeta%-Exxxxx

command else:
.set env HelloWorldEnvironment "ExisteCarpeta = false"

0 votes



One answer

Permanent link
As should be the syntax for a conditional step to tell the following:

condition:
IF EXIST %PRO%\Exxxxx

command:
.set env HelloWorldEnvironment "Dia = %date:~0,2%"
.set env HelloWorldEnvironment "Mes = %date:~3,2%"
.set env HelloWorldEnvironment "Anio = %date:~6,4%"
.set env HelloWorldEnvironment "NombreCarpeta = %Dia%-%Mes%-%Anio%"
mkdir %RES%\%NombreCarpeta%-Exxxxx

command else:
.set env HelloWorldEnvironment "ExisteCarpeta = false"


Hi,

You might give something like this a try in the 'Conditional' text field.

`IF EXIST %PRO%\Exxxxx. (exit 0.) else (exit 1.)`

It's important to have the statement within the backticks (`OS command`).

Brent Ulbricht
RTC Build Lead

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Aug 17 '11, 1:14 p.m.

Question was seen: 4,243 times

Last updated: Aug 17 '11, 1:14 p.m.

Confirmation Cancel Confirm