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

Evalulating Conditional IF statement to true in v7.1.2.2

I am trying to get if ${PKG_ASAP_FOLDER}==Y to evaluate to true in version 7.1.2.2

I have PKG_ASAP_FOLDER environment variable defined in a Build Forge environment
Name Value
Yes Y
No N

I created a non-threaded Conditional step
Condition: if ${PKG_ASAP_FOLDER}==Y

I choose Yes from the PKG_ASAP_FOLDER dropdown

When I execute the job, I get
Result = Skipped for the Package ASAP folder step

with this in the log:
ENV PKG_ASAP_FOLDER=Y
COND The conditon on the step evaluated false, step will not be executed


We are upgrading from version 7.02 to version 7.1.2.2 and I see a lot has changed with the Conditional statements and I have obviously missed something, somewhere. Any help would be appreciated, especially examples.

0 votes



2 answers

Permanent link
I am trying to get if ${PKG_ASAP_FOLDER}==Y to evaluate to true in version 7.1.2.2

I have PKG_ASAP_FOLDER environment variable defined in a Build Forge environment
Name Value
Yes Y
No N

I created a non-threaded Conditional step
Condition: if ${PKG_ASAP_FOLDER}==Y

I choose Yes from the PKG_ASAP_FOLDER dropdown

When I execute the job, I get
Result = Skipped for the Package ASAP folder step

with this in the log:
ENV PKG_ASAP_FOLDER=Y
COND The conditon on the step evaluated false, step will not be executed


We are upgrading from version 7.02 to version 7.1.2.2 and I see a lot has changed with the Conditional statements and I have obviously missed something, somewhere. Any help would be appreciated, especially examples.


Hi,

There are a couple of options you could use. The statement below will work, but there are others.

true(${PKG_ASAP_FOLDER} == Y)

If you search in the documentation on 'Condition functions', you can find all the other variations.

Brent Ulbricht
RTC Build Lead

0 votes


Permanent link
I am trying to get if ${PKG_ASAP_FOLDER}==Y to evaluate to true in version 7.1.2.2

I have PKG_ASAP_FOLDER environment variable defined in a Build Forge environment
Name Value
Yes Y
No N

I created a non-threaded Conditional step
Condition: if ${PKG_ASAP_FOLDER}==Y

I choose Yes from the PKG_ASAP_FOLDER dropdown

When I execute the job, I get
Result = Skipped for the Package ASAP folder step

with this in the log:
ENV PKG_ASAP_FOLDER=Y
COND The conditon on the step evaluated false, step will not be executed


We are upgrading from version 7.02 to version 7.1.2.2 and I see a lot has changed with the Conditional statements and I have obviously missed something, somewhere. Any help would be appreciated, especially examples.


Hi,

There are a couple of options you could use. The statement below will work, but there are others.

true(${PKG_ASAP_FOLDER} == Y)

If you search in the documentation on 'Condition functions', you can find all the other variations.

Brent Ulbricht
RTC Build Lead

Brent -

Your variation worked perfectly!

Thanks.

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 23 '11, 3:41 p.m.

Question was seen: 4,200 times

Last updated: Aug 23 '11, 3:41 p.m.

Confirmation Cancel Confirm