source:
CIVL/mods/dev.civl.com/examples/specialStatements/when4.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 165 bytes | |
| Rev | Line | |
|---|---|---|
| [d510d452] | 1 | #include<civlc.cvh> |
| 2 | ||
| 3 | int main(){ | |
| 4 | int a=1, b=2, c=3; | |
| 5 | ||
| 6 | $when(a>0){ | |
| 7 | $atomic{ | |
| 8 | $when(b>0){ | |
| 9 | //if(a>1){ | |
| 10 | if(a>1 ? b<3 : c>2){ | |
| 11 | a=9; | |
| 12 | } | |
| 13 | } | |
| 14 | } | |
| 15 | } | |
| 16 | } |
Note:
See TracBrowser
for help on using the repository browser.
