user-one-of

user-one-of value list-of-choices

Opens a dialog with value displayed as the message and list-of-choices displayed as a popup menu for the user to select from.

Reports the item in list-of-choices selected by the user.

value may be of any type, but is typically a string.

if "yes" = user-one-of? "Set up the model?" ["yes" "no"]
  [ setup ]

Take me to the full NetLogo Dictionary