when#

cli_interview_kit.when(key: str, *values: str | bool) → Condition[source]#

Return a condition: key is one of values.

Parameters:
keystr

An earlier question’s key, an option’s dest, or a fact.

valuesstr | bool

The values that satisfy the condition.

Returns:
Condition

The condition.