Form then If structure based on selected answer

Hello Everyone

I have a form
{formmenu: name=Typ; 1;2;3;4}

I would like to generate a Text Block depending on 1,2, and 3 OR 4.
So I would have 3 Blocks generated by the user, but they all should be the in the same place.

Any Ideas? One Problem i dont have Logic Operators.
Can it be done?

Hi @Dmitrij_Moreinis,

There are a couple of ways you can do this.

Method 1

{formmenu: name=Type; 1;2;3;4}
{if: type=="1"}Type 1
{elseif: type=="2"}Type 2
{elseif: type=="3" OR type=="4"}Type 3 or 4
{endif}

Method 2

{formmenu: name=Type; 1;2;3;4}
{if: type=="1"}Type 1
{elseif: type=="2"}Type 2
{else}Type 3 or 4
{endif}

Both methods will work in your scenario, but Method 1 is more specific for cases where you want to add additional options in the dropdown menu but don't want them to result in "Type 3 or 4".

One more small tip. Here's an easy way to generate a sequence of numbers for your dropdown menu options.

{formmenu: name=type; values={=seq(1,4)}}