AskedQ["key"]
is a construct for use inside AskFunction that gives True if a value is currently associated with key, and False otherwise.
AskedQ
AskedQ["key"]
is a construct for use inside AskFunction that gives True if a value is currently associated with key, and False otherwise.
Examples
Basic Examples (2)
Use AskedQ to verify if a key has been asked:
CloudDeploy[AskFunction[Ask["A"];AskedQ["A"]]]CloudDeploy[AskFunction[Ask["A"];AskedQ["B"]]]Use AskedQ as the condition of a loop:
CloudDeploy[AskFunction[<|{"name", "What's your name?"} -> "String"|>, While[!AskedQ["name"], Ask["name"]]]]See Also
Related Guides
Related Workflows
- Create a Conversational Interface
History
Text
Wolfram Research (2016), AskedQ, Wolfram Language function, https://reference.wolfram.com/language/ref/AskedQ.html.
CMS
Wolfram Language. 2016. "AskedQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AskedQ.html.
APA
Wolfram Language. (2016). AskedQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AskedQ.html
BibTeX
@misc{reference.wolfram_2026_askedq, author="Wolfram Research", title="{AskedQ}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/AskedQ.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_askedq, organization={Wolfram Research}, title={AskedQ}, year={2016}, url={https://reference.wolfram.com/language/ref/AskedQ.html}, note=[Accessed: 12-June-2026]}