It's all about the answers!

Ask a question

Conditional statement


sriram thiruvenkatachari (8698) | asked Apr 28 '11, 2:31 p.m.
Build Forge provides conditional statement. It also allows multiple commands to be executed in a single step.

In a case where I am using regular step (step type = regular) and executing multiple commands in a single step (multiple commands exist in the command block), can I conditionally run the commands based on certain criteria. The criteria could be as simple as checking for an entry in an environment value.


Thanks

2 answers



permanent link
Robert haig (1.0k16) | answered Apr 28 '11, 3:28 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Build Forge provides conditional statement. It also allows multiple commands to be executed in a single step.

In a case where I am using regular step (step type = regular) and executing multiple commands in a single step (multiple commands exist in the command block), can I conditionally run the commands based on certain criteria. The criteria could be as simple as checking for an entry in an environment value.


Thanks


the short answer is "yes".

you can use conditionals as described here to evaluate your conditional statement
http://publib.boulder.ibm.com/infocenter/bldforge/v7r1m2/index.jsp?topic=/com.ibm.rational.buildforge.doc/topics/steps_exec_condition_functions.html

then you have a "then" and an "else" step command box in which you can execute multiple system commands just like a regular step.

You can read more on this here: http://publib.boulder.ibm.com/infocenter/bldforge/v7r1m2/index.jsp?topic=/com.ibm.rational.buildforge.doc/topics/steps_exec_conditional.html

permanent link
sriram thiruvenkatachari (8698) | answered May 02 '11, 1:26 p.m.
Thanks.

Your answer


Register or 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.