# Simple switch using @if?

**URL:** <https://resource.dopus.com/t/simple-switch-using-if/23193>\
**Category:** Help & Support\
**Created:** [August 23, 2016, 6:17am UTC](https://resource.dopus.com/t/simple-switch-using-if/23193 "2016-08-23T06:17:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aussieboykie](https://resource.dopus.com/user_avatar/resource.dopus.com/aussieboykie/32/23729_2.png) [@aussieboykie](https://resource.dopus.com/u/aussieboykie)\
**Post date:** [August 23, 2016, 6:17am UTC](https://resource.dopus.com/t/simple-switch-using-if/23193/1 "2016-08-23T06:17:16Z")

</div>

Is there a (non scripting) way of implementing a simple switch using @if along the following lines...?

`@set yesorno = {dlgchoose|Yes or No?|Y+N}
@if:$yesorno=Y
Help 
@if:else
Help ABOUT`  
Regards, AB

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [August 23, 2016, 11:32am UTC](https://resource.dopus.com/t/simple-switch-using-if/23193/2 "2016-08-23T11:32:32Z")

</div>

You can test if variables exist but I am ot sure there is a way to test them against different values outside of scripting.

I would use scripting. It makes sense as soon as you want conditional logic. Avoiding it usually just makes things harder in the end.
