Notifications
Clear all

[Closed] dropdown list

How do i search a dropdown list for a variable and if true make it the selected dropdown list item.

dropdownlist ddlView “” width:110 items:(“Donut”,“Nut”,“Popsicle”,“Candy”) pos:[50,28]

on rollout open do
(
if isvalidnode Popsicle do (ddlView.selection Popsicle)
)

2 Replies
 lo1

What does isValidNode have to do with a list of strings?

Do you mean it should search for a scene node that has the name of the strings in the list?

would this help?

ddlView.selection = (finditem ddlView.items "Popsicle")