AskState

AskState[]

is a construct for use inside AskFunction that returns an association of all values in the current state of the AskFunction.

Details

  • AskState[] gives an association of the form <|"key1"->value1,"key2"->value2,|>, where the entries are in the order in which keys were first set in the operation of the AskFunction.

Examples

Basic Examples  (2)

Retrieve all currently known values:

In[1]:=
Click for copyable input
Out[1]=

Use AskState to check on the number of questions answered:

In[1]:=
Click for copyable input
Out[1]=

See Also

AskTemplateDisplay  AskedValue  AskFunction  Ask

Related Workflows

Introduced in 2017
(11.1)