# Switch and Case Action issue

**URL:** https://www.finalbuilder.com/forums/t/switch-and-case-action-issue/3157
**Category:** Bugs
**Created:** [October 8, 2009, 9:58am UTC](https://www.finalbuilder.com/forums/t/switch-and-case-action-issue/3157 "2009-10-08T09:58:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![devrieskok](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/ecc23a/32.png) [@devrieskok](https://www.finalbuilder.com/forums/u/devrieskok)
#### Post date: [October 8, 2009, 9:58am UTC](https://www.finalbuilder.com/forums/t/switch-and-case-action-issue/3157/1 "2009-10-08T09:58:47Z")

</div>

Hi,

When the Switch action has no value or gets no value set due to %Value% variable&nbsp;is empty the action Status is set to Error and the project is STOPPED. No exception is raised in order to handle this in a Catch.

Added sample Project.

Regards

[TestSwitch.fbp6](https://www.finalbuilder.com/forums/uploads/default/original/2X/6/67219d612cdd4466edd9b9c26707d1edc22f3a17.fbp6) (38.969 KB)

---

<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: [October 9, 2009, 6:27am UTC](https://www.finalbuilder.com/forums/t/switch-and-case-action-issue/3157/2 "2009-10-09T06:27:58Z")

</div>

Hi Alfred   
  
 I have changed the error behavior so that exceptions are raised. I also added a new property to the Switch action to Allow Blank Values.   
  
 [https://www.finalbuilder.com/downloads/finalbuilder/630/FB630\_1755.exe](https://www.finalbuilder.com/downloads/finalbuilder/630/FB630_1755.exe)

---

<div class="post-metadata">

### Author: ![devrieskok](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/ecc23a/32.png) [@devrieskok](https://www.finalbuilder.com/forums/u/devrieskok)
#### Post date: [October 10, 2009, 1:15am UTC](https://www.finalbuilder.com/forums/t/switch-and-case-action-issue/3157/3 "2009-10-10T01:15:52Z")

</div>

Hi Vincent,

Thanks for the quick response, will start testing monday.

Regards Alfred
