# Problem with practice lesson for switch

**URL:** <https://forum.uipath.com/t/problem-with-practice-lesson-for-switch/470990>\
**Category:** Activities\
**Tags:** question, studio, system, activities\
**Created:** [September 7, 2022, 6:55am UTC](https://forum.uipath.com/t/problem-with-practice-lesson-for-switch/470990 "2022-09-07T06:55:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fisher](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/fisher/32/263901_2.png) [@Fisher](https://forum.uipath.com/u/Fisher)\
**Post date:** [September 7, 2022, 6:55am UTC](https://forum.uipath.com/t/problem-with-practice-lesson-for-switch/470990/1 "2022-09-07T06:55:31Z")

</div>

Hello,  
I have problem that i have no clue what activity use in switch body to use below expression:

AxArray.Concat({Value}).ToArray

sadly im unable to check file provided by UiPath itself with solution

---

<div class="post-metadata">

**Author:** ![Gokul001](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/gokul001/32/462734_2.png) [@Gokul001](https://forum.uipath.com/u/Gokul001)\
**Post date:** [September 7, 2022, 6:57am UTC](https://forum.uipath.com/t/problem-with-practice-lesson-for-switch/470990/2 "2022-09-07T06:57:54Z")

</div>

HI @Fisher

Welcome to uipath community

Can you elaborate your query? Have you facing any error while processing?

---

<div class="post-metadata">

**Author:** ![Gokul001](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/gokul001/32/462734_2.png) [@Gokul001](https://forum.uipath.com/u/Gokul001)\
**Post date:** [September 7, 2022, 6:59am UTC](https://forum.uipath.com/t/problem-with-practice-lesson-for-switch/470990/3 "2022-09-07T06:59:26Z")

</div>

Have a look on the docs and thread

> **[How to use the UiPath Switch activity](https://www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/example-uipath-switch-activity-conditional-explained-tutorial)**
>
> While the UiPath If activity is great for simple logic, multi-branching demands the UiPath Switch activity. Learn how to use it to perform conditional logic.

> [@How to use switch on a string](https://forum.uipath.com/t/how-to-use-switch-on-a-string/1886):
>
> Hi, I’m trying to use the switch activity to do different activities if a variable I scraped contains specific words. For example, if contains “hello” do an activity, and if contains “bye” another one…

> **[Studio](https://docs.uipath.com/studio/standalone/2023.10)**
>
> The UiPath Documentation Portal - the home of all our valuable information. Find here everything you need to guide you in your automation journey in the UiPath ecosystem, from complex installation guides to quick tutorials, to practical business...

Hope this will helps

Regards  
Gokul

---

<div class="post-metadata">

**Author:** ![Sanjit\_Pal](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sanjit_pal/32/193785_2.png) [@Sanjit\_Pal](https://forum.uipath.com/u/Sanjit_Pal)\
**Post date:** [September 7, 2022, 7:32am UTC](https://forum.uipath.com/t/problem-with-practice-lesson-for-switch/470990/4 "2022-09-07T07:32:46Z")

</div>

Hey @Fisher,

Have a look on this to learn about the switch activity.

[![](https://global.discourse-cdn.com/uipath/original/4X/0/b/3/0b37c552a14416cacc04630bd49164020d528886.jpeg "Switch Case Statement | Switch Case | Switch Case Uipath | Uipath Tutorials | CodersLobby") ](https://www.youtube.com/watch?v=EvNXqeYgb5A)

Thanks,  
Sanjit

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [September 14, 2022, 11:58am UTC](https://forum.uipath.com/t/problem-with-practice-lesson-for-switch/470990/5 "2022-09-14T11:58:20Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
