Let us assume that we have the list with some names, say
list = {"Name1","Name2","Name3"};
How to make a graphical interface allowing to set the value of the parameter parameter to be equal to one of the values from the list by just clicking on the corresponding value of list?
Update
Following comments by kglr, I provide the example piece of code that would contain the choosing interface:
list ={"Name1","Name2","Name3"};
SetterBar[Dynamic[parameter], list]
If[parameter=="Name2",16,"False"]
Since the code that follows after SetterBar is not delayed until I make some choice in the setter bar, it does not work properly: the If condition evaluates for the value of parameter that is not associated with the choice.

SetterBar[Dynamic[parameter], list]? – kglr Mar 11 '23 at 15:17SetterBarbut is evaluated instead. Is it possible to postpone the code evaluation until the choice has been made? – John Taylor Mar 11 '23 at 21:49Dynamic@If[parameter === "Name2", 16, "False"]? – kglr Mar 13 '23 at 09:10