Prompt Escalation Operator ||
The prompt escalation || operator can be used to create escalation
prompts, day of week prompts, time of day prompts, time of week prompts or
random prompts. If at least one of the operands is a prompt, the other is
converted to a prompt according to the rules set forth by Table 1-7 and the
result will be a new prompt. It is syntactically left-associative (it groups
left-to-right). It is fully associative with respect to both side effects and
result value; that is, for any expressions a, b, and c, evaluation of the
expression
((a)||(b))||(c)
produces the same result, with the same
side effects occurring in the same order, as evaluation of the expression
(a)||((b)||(c))
.
PromptEscalationExpression:
PromptExpression || PromptEscalationExpression
||
operators) was qualified using the
@
or %
operators:
-
If both prompt operands are qualified with a time of day and a day of week then the resulting prompt is a time of week prompt. All remaining operands of subsequent
||
operators are going to be added as prompts for subsequent time of week and must then be qualified with at least both a time of day and a day of week or a parse-time error occurs. Other qualifiers if present are ignored. -
Otherwise, if both prompt operands are qualified with a day of week then the resulting prompt is a day of week prompt. All remaining operands of subsequent
||
operators are added as prompts for the subsequent day of week and must then be qualified with at least a day of week or a parse-time error occurs. Other qualifiers if present are ignored. -
Otherwise, if both prompt operands are qualified with a time of day then the resulting prompt is a time of day prompt. All remaining operands of subsequent
||
operators are added as prompts for the subsequent time of day and must then be qualified with at least a time of day or a parse-time error occurs. Other qualifiers if present are ignored. -
Otherwise, if both prompt operands are qualified with a weight then the resulting prompt is a random prompt. All remaining operands of subsequent || operators are added as additional prompts and must then be qualified with at least a weight or a parse-time error occurs. Other qualifiers if present are ignored.
-
Otherwise, the resulting prompt is an escalation prompt. All remaining operands of subsequent || operators are added as subsequent escalation and their qualifications are ignored.