Skip to contents

This function is called within the mapMetadata function.

It prompts a response from the user, in the form of a list.

It checks if the user has given the an input within the allowed range - if not, it re-sends prompt.

Usage

user_prompt_list(prompt_text, list_allowed, empty_allowed)

Arguments

prompt_text

Text to display to the user, to prompt their response.

list_allowed

A list of allowable integer responses.

empty_allowed

A boolean specifying if no response is allowed.

Value

It returns a list of integers to process, that match the prompt options.