Writing an if else statement with variables

I get how to use elseif statements, but how do I do the reverse.
Variables 1, 6, 7, 9 , 10

I want " text string" to trigger if for variables 1 or 6 or 7 or 10, but not trigger for 9.

Hi @Geoff_Kraabel ,
Are 1,6,7,9,10 possible values of a given variable?
Is it the same "text string" for all values except 9?

If yes to both, you can use this:

{formmenu: 1;6;7;9;default=10;name=number}
{if:number<>9}Text string{endif}

This is helpful! Is there a way I can write it for just variables 6 or 7?

You can use one of the solutions

{formmenu: 1;6;7;9;default=10; name=number}
{if: number==6 or number==7}Text string 1{endif}
Or

{if: includes([6,7], number)}Text string 2{endif}