# Switch (question)

**URL:** <https://forum.uipath.com/t/switch-question/221509>\
**Category:** Help\
**Tags:** system, activities\
**Created:** [May 10, 2020, 1:57pm UTC](https://forum.uipath.com/t/switch-question/221509 "2020-05-10T13:57:03Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ppr](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ppr/32/464097_2.png) [@ppr](https://forum.uipath.com/u/ppr)\
**Post date:** [May 10, 2020, 6:30pm UTC](https://forum.uipath.com/t/switch-question/221509/4 "2020-05-10T18:30:43Z")

</div>

@Arettu63  
maybe some details we do need, but i will try to answer

Switch activity should be configure as working on string (TypeArgument)

Construct your code e.g. as  
strCode = Convert.ToInt(True).toString + Convert.ToInt(False).toString

So this will rsult to the codes:  
11 = A is True, B is true  
01 = A is false, B is true  
00 = All is false  
01 = A is false, B is true

So based on this codes within the switch you can react as by your need e.g open browser, open notepad

---

_[View the full topic](https://forum.uipath.com/t/switch-question/221509)._
