Skip to content

Inform

Definition

    <alt> <proposition predicate="size" value="small"> </alt>

An alternative in an alternative question.

Attribute Type Description

Parents

Children

Behaviour

The <alt/> element represents an alternative in an alternative question. The alternative may be a proposition, a resolve goal or a perform goal.

Propositions are used when chosing among propositional answers: "Do you want to go to Paris or to London?". Resolve and perform goals are used when asking the user what they want to do: "Do you want to buy a ticket, or do you want to know if there are any delays?"

Examples

An alternative for "Do you want me to calculate the monthly payment?"

    <alt>
        <resolve type="wh_question" predicate="monthly_payment"/>
    </alt>

An alternative for "Do you want me to book a train ticket?"

    <alt>
        <perform action="book_train_ticket"/>
    </alt>

An alternative for "I want to go to Chelsea."

    <alt>
        <proposition predicate="destination" value="chelsea"/>
    </alt>