# Problem with If .. Then term

**URL:** https://www.finalbuilder.com/forums/t/problem-with-if-then-term/2986
**Category:** Bugs
**Created:** [April 30, 2008, 6:22am UTC](https://www.finalbuilder.com/forums/t/problem-with-if-then-term/2986 "2008-04-30T06:22:04Z")
**Posts on this page:** 4
**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: [April 30, 2008, 6:22am UTC](https://www.finalbuilder.com/forums/t/problem-with-if-then-term/2986/1 "2008-04-30T06:22:04Z")

</div>

Hi guys.&nbsp; I'm trying to use the If .. Then action and the "Is A Member of Comma-Separated List" operation.&nbsp; I am testing for a sub-string in a variable.  
  
The variable is  
PLATFORMS=Win32,Xbox 360  
  
I have two actions.&nbsp; One works and the other does not.  
  
&nbsp; If [Xbox 360] is in CSV [%PLATFORMS%]  
  
does not work, but  
  
&nbsp; If [Win32] is in CSV [%PLATFORMS%]  
  
does work.&nbsp; The log output is  
  
Expression:  
&nbsp;&nbsp;&nbsp;&nbsp; If ( Xbox 360&nbsp; is in CSV&nbsp; %PLATFORMS% )   
Expanded Values:  
&nbsp;&nbsp;&nbsp;&nbsp; "Xbox 360" is not a member of "Win32,Xbox 360"  
Expression evaluated False  
  
Expression:  
&nbsp;&nbsp;&nbsp;&nbsp; If ( Win32&nbsp; is in CSV&nbsp; %PLATFORMS% )   
Expanded Values:  
&nbsp;&nbsp;&nbsp;&nbsp; "Win32" is a member of "Win32,Xbox 360"  
Expression evaluated True  
  
  
Also, the Help button does nothing in this dialog.&nbsp; Going through the Help menu, the page for the If .. Then action contains no mention of specifics for the CSV operators.  
  
FinalBuilder version 5.5.0.707

---

<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: [April 30, 2008, 6:45am UTC](https://www.finalbuilder.com/forums/t/problem-with-if-then-term/2986/2 "2008-04-30T06:45:49Z")

</div>

Hi Steve   
  
 This looks like a bug, my guess is the expression is not evaluating because of the space in the value. I’ll look into this.

---

<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: [April 30, 2008, 8:05am UTC](https://www.finalbuilder.com/forums/t/problem-with-if-then-term/2986/3 "2008-04-30T08:05:10Z")

</div>

Hi Steve

Here's a test build with the fix for the If .. Then action :

[https://www.finalbuilder.com/downloads/finalbuilder/550/FB550\_725.exe](https://www.finalbuilder.com/downloads/finalbuilder/550/FB550_725.exe)

&nbsp;

---

<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: [April 30, 2008, 8:19am UTC](https://www.finalbuilder.com/forums/t/problem-with-if-then-term/2986/4 "2008-04-30T08:19:39Z")

</div>

One hour forty-three minutes from first post to a successful fix.

&nbsp;

Expression:  
&nbsp;&nbsp;&nbsp;&nbsp; If ( Xbox 360&nbsp; is in CSV&nbsp; %PLATFORMS% )   
Expanded Values:  
&nbsp;&nbsp;&nbsp;&nbsp; "Xbox 360" is a member of "Win32,Xbox 360"  
Expression evaluated True

I wish all vendors were that responsive. &nbsp; It does help that we are in the same country.
