I usually use initialization values at the start of script (or configuration file). Below is simple example how those could be used here
Names Default To Here(1);
cb_vals = {"One", "Two", "Three"};
init_cb_val = "Two";
New Window("Example",
cb = Combo Box(
cb_vals,
<<set function(
Function({self},
selection = cb << GetSelected();
Print("Selected: " || selection);
)
),
<< Set(Contains(cb_vals, init_cb_val), 1)
)
);
You can then initialize the selectors final value with same init_cb_val if you want to
-Jarmo