qml.templates.utils.check_is_in_options

check_is_in_options(element, options, msg)[source]

Check that the value of element is in options.

Parameters
  • element – arbitraty variable

  • options – possible options for element

  • msg (str) – error message to display