mirror of
https://github.com/CatalaLang/catala.git
synced 2024-09-20 08:47:14 +03:00
14 lines
449 B
Markdown
14 lines
449 B
Markdown
## Test
|
|
|
|
```catala
|
|
declaration scope A:
|
|
context x content integer depends on boolean
|
|
context z content integer
|
|
|
|
scope A:
|
|
definition x of y under condition y consequence equals 0
|
|
definition x of y under condition not y consequence equals 1
|
|
definition z under condition x of true = 0 consequence equals 0
|
|
definition z under condition x of true < 0 consequence equals -1
|
|
definition z under condition x of true > 0 consequence equals 1
|
|
``` |