Skip to content

& (ampersand)

Description

Another way to invoke the and action.

Examples

state A {
    wait(0)
    if ((age() >= 20) & (age() < 30)) then next(Selected)
    default(Excluded)
}
The above moves all agents in their twenties to the state Selected.