{"id":"console--PromptChoiceOr","name":"PromptChoiceOr","owner":"yeho","package":"console","kind":"function","signature":"external PromptChoiceOr(text label, list of text options, text fallback) returns text","description":"Prompt choice or.","context":"Write readable output, prompts, values, and diagnostics in a console application.","parameters":[{"name":"label","type":"text","description":"Supply label as text."},{"name":"options","type":"list of text","description":"Supply options as list of text."},{"name":"fallback","type":"text","description":"Supply fallback as text."}],"returns":"text","members":[],"tags":["console","cpu","function","source-example","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/console/console.yh","line":415,"sha256":"e5ea71c3adbd73da14f2de6f55a02d3610caf7fcaf4056d115886385bbb5dbc7"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use PromptChoiceOr","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using console\n\n// Write readable output, prompts, values, and diagnostics in a console application.\ntext label = \"Player health\"\nlist of text options = []\ntext fallback = \"fallback\"\ntext result = PromptChoiceOr(label, options, fallback)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.console__promptchoiceor\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"102a33a86ccd6b198904ae85f63ef432558ebdd83c3515134c266a6f1a081462","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=console--PromptChoiceOr","json":"https://demonhunterlabs.com/reference/items/console--PromptChoiceOr.json","markdown":"https://demonhunterlabs.com/reference/text/console--PromptChoiceOr.md"}
