# ClearCase find checked-out follow by an IF condition

**URL:** https://www.finalbuilder.com/forums/t/clearcase-find-checked-out-follow-by-an-if-condition/368
**Category:** Discussion
**Created:** [February 21, 2007, 4:44am UTC](https://www.finalbuilder.com/forums/t/clearcase-find-checked-out-follow-by-an-if-condition/368 "2007-02-21T04:44:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [February 21, 2007, 4:44am UTC](https://www.finalbuilder.com/forums/t/clearcase-find-checked-out-follow-by-an-if-condition/368/1 "2007-02-21T04:44:20Z")

</div>

Hi all,

I am evaluating FinalBuilder tool and I want to do the following steps:

1- Find Checked out file with Clearcase

2- If there is a checked-out file Then

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - continue others tasks

&nbsp;&nbsp; else

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - stop

Can you let me on how I can implement the If ... then ... else condition in Final Builder?

Regards,

Fabrice.

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [February 21, 2007, 11:33am UTC](https://www.finalbuilder.com/forums/t/clearcase-find-checked-out-follow-by-an-if-condition/368/2 "2007-02-21T11:33:34Z")

</div>

Hi Fabrice,  
  
You need to set an FB Variable to the condition you want to test for (ie. create an FB Variable via Tools | Edit Variables, then in the Clearcase action set the variable to true of there is a checked out file).  
  
Then use the following actions:  
If … Then (set the left hand value to your variable, and the right hand value to True)  
 - indent the other tasks here  
Else action  
 - indent the else actions here  
  
  
The other way you can do it is to use the boolean variable in the Condition field of the actions (it’s on the Runtime tab, and don’t enclose the variable in %'s). So you could have the following:  
  
Action Group (Description: If Files Checked out, Condition: FilesCheckedOut)  
 - indent other tasks  
Action Group (Description: If Files not Checked out, Condition: not FilesCheckedOut)  
 - indent else actions here.  
  
  
hth.  
.t8
