source:
CIVL/mods/dev.civl.com/examples/specialStatements/when1.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 138 bytes | |
| Line | |
|---|---|
| 1 | #include<civlc.cvh> |
| 2 | |
| 3 | int main(){ |
| 4 | int a=10; |
| 5 | |
| 6 | $when(a<100){ |
| 7 | $assert(a==10); |
| 8 | int a=9; |
| 9 | $assert(a==9); |
| 10 | } |
| 11 | $assert(a==10); |
| 12 | } |
Note:
See TracBrowser
for help on using the repository browser.
