NetLogo Help: user-one-of

### user-one-of3.1

#### 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 ]

Note: This primitive is not compatible with NetLogo Web. If you wish to read a chooser value from the user with the same code and the same behavior in both NetLogo and NetLogo Web, see dialog:user-one-of.

See the User Interaction Primitives section of the Programming Guide for additional details.

Take me to the full NetLogo Dictionary