Win11 32120 Setting dropdown menu par to a non-existing value switches the value to first one in the list

To recreate create a custom base with a dropdown menu change the value by hand to be Label 2 or Label 3, then execute this code: op(<path_to_base>).par.<drop_down_menu_name> = "sdlkfjsldkfjsl" and you will see that it will jump to Label 1 instead of giving you an error.

Alas that is the TD behavior when you try to set a menu to an incorrect entry. If you need to check if a value is in the list, you can:

if ‘val’ in op(‘base1’).par.Menu.menuNames:

I see, thanks!