Skip to content

female (constant)

Syntax

female

Description

A constant representing the sex of female agents. The associated numeric value is 0.

This must be lower case, the capitalized Female is not recognized.

Examples

Assuming sex is a numeric variable, female agents can be sorted into the state Select with the transition rule

next_if(Select, sex == female)

See Also