A conditional is a singleDocumentation Index
Fetch the complete documentation index at: https://momentic.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
if key holding exactly one assertion condition plus
a then list. The condition is an assert, a screen check, an element check,
or a javascript expression. Mobile conditionals do not support else. Use
a separate step instead.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| condition | command | Yes | Exactly one assertion command: assert, checkScreenContains, checkScreenDoesNotContain, a checkElement<...> alias, or javascript. |
then | step[] | Yes | Steps to run when the condition passes. |
comment | string | No | Free-form annotation kept with the step. |