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 - Prompt Concatenation Conversion Result 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
The determination of the type of prompt that will result from this operator depends on how the first two prompt operands (in a sequence of || operators) wsere 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 will be 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 will occur. Other qualifiers if present will be ignored. -
Otherwise, if both prompt operands are qualified with a day of week then the resulting prompt will be a day of week prompt. All remaining operands of subsequent || operators are going to be added as prompts for subsequent day of week and must then be qualified with at least a day of week or a parse-time error will occur. Other qualifiers if present will be ignored.
-
Otherwise, if both prompt operands are qualified with a time of day then the resulting prompt will be a time of day prompt. All remaining operands of subsequent || operators are going to be added as prompts for subsequent time of day and must then be qualified with at least a time of day or a parse-time error will occur. Other qualifiers if present will be ignored.
-
Otherwise, if both prompt operands are qualified with a weight then the resulting prompt will be a random prompt. All remaining operands of subsequent || operators are going to be added as additional prompts and must then be qualified with at least a weight or a parse-time error will occur. Other qualifiers if present will be ignored.
-
Otherwise, the resulting prompt will be an escalation prompt. All remaining operands of subsequent || operators are going to be added as subsequent escalation and their qualifications will be ignored.