# Best way to switch between Signals?

**URL:** https://scilab.discourse.group/t/best-way-to-switch-between-signals/448
**Category:** Xcos
**Created:** [March 28, 2024, 1:51pm UTC](https://scilab.discourse.group/t/best-way-to-switch-between-signals/448 "2024-03-28T13:51:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Smart](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Smart](https://scilab.discourse.group/u/Smart)
#### Post date: [March 28, 2024, 1:51pm UTC](https://scilab.discourse.group/t/best-way-to-switch-between-signals/448/1 "2024-03-28T13:51:10Z")

</div>

Hello,

what is the best way to switch between different input signals?  
I attached my solution, but I believe there is a smarter way.

![image](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/4a54ee7de206875334ec35acb3adac6f6cd1c05e.png)

Best!

---

<div class="post-metadata">

### Author: ![Junying](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@Junying](https://scilab.discourse.group/u/Junying)
#### Post date: [March 1, 2025, 12:48am UTC](https://scilab.discourse.group/t/best-way-to-switch-between-signals/448/2 "2025-03-01T00:48:34Z")

</div>

Hi,

As a beginner, I also tried to find a signal switch, but failed. So I used the expression block(as below drawing) to switch two signals, for your reference.

I also believe there must be smarter ways that it.

Regards,  
Junying

 ![1](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/8aee1632efe51e83298c5906e5edac357a1ab0d6.png)
