source:
CIVL/examples/languageFeatures/nonbooleanCondition.cvl@
90dd7d7
| Last change on this file since 90dd7d7 was 793cfc2, checked in by , 13 years ago | |
|---|---|
|
|
| File size: 148 bytes | |
| Rev | Line | |
|---|---|---|
| [9f1ed5b] | 1 | #include<civlc.h> |
| 2 | ||
| 3 | void main() { | |
| 4 | int i = 1; | |
| 5 | float x = 1.0; | |
| 6 | ||
| 7 | $when(i) {i = 0;} | |
| 8 | $when(x) {x = 0.0;} | |
| 9 | $assert i == 0; | |
| 10 | $assert x == 0.0; | |
| 11 | } |
Note:
See TracBrowser
for help on using the repository browser.
