# If/Else functionality

**URL:** <https://community.blaze.today/t/if-else-functionality/68981>\
**Category:** Questions and Help\
**Created:** [October 28, 2026, 11:12pm UTC](https://community.blaze.today/t/if-else-functionality/68981 "2026-10-28T23:12:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gerald\_John\_Amora1](https://community.blaze.today/user_avatar/community.blaze.today/gerald_john_amora1/32/15265_2.png) [@Gerald\_John\_Amora1](https://community.blaze.today/u/Gerald_John_Amora1)\
**Post date:** [October 28, 2026, 11:12pm UTC](https://community.blaze.today/t/if-else-functionality/68981/1 "2026-10-28T23:12:51Z")

</div>

Hi there,

seeking assistance because I ran into a roadblock and couldn't get this to work. I'm trying to create a toggle option that reveals a dropdown menu containing different regions. Once a region is selected, specific information should display based on that choice. I managed to make the dropdown feature work on its own, but I haven't been able to successfully integrate it with the toggle functionality.

PS : I need it to start with the toggle, as there are several other options that need to be present before the dropdown menu appears.

 ![image](https://community.blaze.today/uploads/default/original/3X/0/3/03f2818f0c29b5a05d1032665b743d68a74e76bb.png)

---

<div class="post-metadata">

**Author:** ![tonydow](https://community.blaze.today/user_avatar/community.blaze.today/tonydow/32/18761_2.png) [@tonydow](https://community.blaze.today/u/tonydow)\
**Post date:** [October 29, 2026, 6:28am UTC](https://community.blaze.today/t/if-else-functionality/68981/2 "2026-10-29T06:28:01Z")

</div>

I think you need an If toggle equals Yes statement after the toggle with the endif at the very bottom

---

<div class="post-metadata">

**Author:** ![scott](https://community.blaze.today/user_avatar/community.blaze.today/scott/32/30_2.png) [@scott](https://community.blaze.today/u/scott)\
**Post date:** [October 29, 2026, 8:47am UTC](https://community.blaze.today/t/if-else-functionality/68981/3 "2026-10-29T08:47:30Z")

</div>

Something like this should work:

...

{formtoggle: name=Show Regions; default=no}{formmenu: AU; NZ; UK}...  
{endformtoggle}  
...

---

<div class="post-metadata">

**Author:** ![Gerald\_John\_Amora1](https://community.blaze.today/user_avatar/community.blaze.today/gerald_john_amora1/32/15265_2.png) [@Gerald\_John\_Amora1](https://community.blaze.today/u/Gerald_John_Amora1)\
**Post date:** [October 29, 2026, 4:04pm UTC](https://community.blaze.today/t/if-else-functionality/68981/4 "2026-10-29T16:04:31Z")

</div>

I mean how do I make this work with if/else functionality. Once a region is selected, specific information should display based on that choice.

---

<div class="post-metadata">

**Author:** ![scott](https://community.blaze.today/user_avatar/community.blaze.today/scott/32/30_2.png) [@scott](https://community.blaze.today/u/scott)\
**Post date:** [October 29, 2026, 4:32pm UTC](https://community.blaze.today/t/if-else-functionality/68981/5 "2026-10-29T16:32:22Z")

</div>

You would do something like this:

{formmenu: name=region; US; EU}  
{if: region="US"}  
You selected United States  
{elseif: region = "EU"}  
Tou selected Europe  
{endif}

If you click on the "..." above the options for the menu in the sidebar, Text Blaze can create the if-conditions for you:

 ![image](https://community.blaze.today/uploads/default/original/3X/d/c/dc65c42092dd9f529fc0e19daa909585fa513fbc.png)

---

<div class="post-metadata">

**Author:** ![Gerald\_John\_Amora1](https://community.blaze.today/user_avatar/community.blaze.today/gerald_john_amora1/32/15265_2.png) [@Gerald\_John\_Amora1](https://community.blaze.today/u/Gerald_John_Amora1)\
**Post date:** [October 29, 2026, 6:40pm UTC](https://community.blaze.today/t/if-else-functionality/68981/6 "2026-10-29T18:40:24Z")

</div>

Hi Scott,

Thank you for your prompt response! I was finally able to make it work. I just want to ask if there's a way to filter out the dropdown choice so it doesn't appear in the actual outcome of the snippet?  
For example, instead of getting 'USYou selected United States', I just want 'You selected United States' to show up.

Thankie

---

<div class="post-metadata">

**Author:** ![scott](https://community.blaze.today/user_avatar/community.blaze.today/scott/32/30_2.png) [@scott](https://community.blaze.today/u/scott)\
**Post date:** [October 30, 2026, 12:37pm UTC](https://community.blaze.today/t/if-else-functionality/68981/7 "2026-10-30T12:37:37Z")

</div>

Yes, you can use the {note} command to wrap anything you don't want to be actually inserted.

You can learn more about it here:

> **[{note}](https://blaze.today/commands/note/)**
>
> A block of content that is not inserted into a snippet.

---

<div class="post-metadata">

**Author:** ![Gerald\_John\_Amora1](https://community.blaze.today/user_avatar/community.blaze.today/gerald_john_amora1/32/15265_2.png) [@Gerald\_John\_Amora1](https://community.blaze.today/u/Gerald_John_Amora1)\
**Post date:** [October 30, 2026, 7:16pm UTC](https://community.blaze.today/t/if-else-functionality/68981/8 "2026-10-30T19:16:35Z")

</div>

Hi Scott,

Apologies, I don't think I explained the problem well. As you can see here, the drop-down for the snippet shows different regions as options for the prompt.

 ![image](https://community.blaze.today/uploads/default/original/3X/c/7/c78aac766beccd3f543f5fa6675a110825ea28c6.png)

However, It also shows up here

 ![image](https://community.blaze.today/uploads/default/original/3X/4/8/48f41c1db120ca1c12362b06c333ba009d883884.png)

Is there a way to filter it out?

---

<div class="post-metadata">

**Author:** ![Dan\_Barak1](https://community.blaze.today/user_avatar/community.blaze.today/dan_barak1/32/2322_2.png) [@Dan\_Barak1](https://community.blaze.today/u/Dan_Barak1)\
**Post date:** [October 30, 2026, 7:45pm UTC](https://community.blaze.today/t/if-else-functionality/68981/9 "2026-10-30T19:45:43Z")

</div>

Hi @Gerald_John_Amora1 ,  
Yes, that's what Scott meant with the note command. Whatever is inside a note will show up in the pop-up but will not be inserted as text. Here's an example:

{note}{formmenu: name=region; US; EU}  
{endnote}{if: region="US"}  
You selected United States  
{elseif: region = "EU"}  
Tou selected Europe  
{endif}

---

<div class="post-metadata">

**Author:** ![Gerald\_John\_Amora1](https://community.blaze.today/user_avatar/community.blaze.today/gerald_john_amora1/32/15265_2.png) [@Gerald\_John\_Amora1](https://community.blaze.today/u/Gerald_John_Amora1)\
**Post date:** [October 30, 2026, 9:31pm UTC](https://community.blaze.today/t/if-else-functionality/68981/10 "2026-10-30T21:31:53Z")

</div>

@Dan_Barak1@scott

Thank you guys! 🙏 This has been resolved 👏
