# Python execute condition

**URL:** https://www.finalbuilder.com/forums/t/python-execute-condition/1926
**Category:** Discussion
**Created:** [January 11, 2012, 9:12am UTC](https://www.finalbuilder.com/forums/t/python-execute-condition/1926 "2012-01-11T09:12:24Z")
**Posts on this page:** 3
**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: [January 11, 2012, 9:12am UTC](https://www.finalbuilder.com/forums/t/python-execute-condition/1926/1 "2012-01-11T09:12:24Z")

</div>

Hi All,

Can anyone point me in the direction of how to write a python script for the execute condtion?

I have seen the [fb6 project](https://www.finalbuilder.com/Resources/Blogs/tabid/458/EntryId/261/Using-Python-in-FinalBuilder.aspx) for writing a normal script. E.g. how would i use a python script in the execute condition.

&nbsp;

Thanks

Satpal

&nbsp;

&nbsp;

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 13, 2012, 4:21am UTC](https://www.finalbuilder.com/forums/t/python-execute-condition/1926/2 "2012-01-13T04:21:58Z")

</div>

It’s just a boolean expression, for example :   
  
 FBVariables[“COMPUTERNAME”] == “EXTRA”

---

<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: [January 17, 2012, 10:24am UTC](https://www.finalbuilder.com/forums/t/python-execute-condition/1926/3 "2012-01-17T10:24:59Z")

</div>

> Posted By Vincent Parrett on 12 Jan 2012 09:21 PM   
> It's just a boolean expression, for example :   
>   
> FBVariables["COMPUTERNAME"] == "EXTRA"

The reason that i was looking at python for and execute condition as opposed to vb was that i need to check if a value was in a list.

The list would come in from Checkbox list on the server, atleast I'm hoping that the checkbox list will allow me to select several variables. So I would like to do something like:

value in FBVariables["list"]

Is this correct?

EDIT

The solution is:

"value" in FBVariables["list"]

Regards

Satpal

&nbsp;
