sim:expect
Assert that a condition is true.
Syntax
Section titled “Syntax”sim:expect <condition>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
condition |
bool |
Boolean condition to assert |
Examples
Section titled “Examples”# Assert a simple conditionsim:expect true
# Assert with variablesset $a 42sim:expect @bool($a == 42)- If the condition is false, the script halts with an assertion error
- Typically used inside
sim:forkblocks to verify simulated outcomes