Check Selection Form

Hi everyone, I want to check at least one element in my selection list has been checked or not? So I use forms.check_selection() after the forms.SelectionFromList.show (as you can see in that screenshot) to do that. But even if I select an element, it still gives me a warning. Maybe I didn’t use it properly. Can you help me with this? Thank you.

Usually i check the selection like this

if not(selected_templatesheet_name):
    script.exit()

Or

if selected_templatesheet_name is None:
    script.exit()
1 Like

thanks @Jean-Marc . It’s exact thing that I need.

1 Like