source: CIVL/examples/specialStatements/when3.cvl

main
Last change on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 291 bytes
Line 
1#include<civlc.cvh>
2
3int main(){
4 int a=100, b=1;
5
6 $when(a>10){
7 $choose{
8 $when(b>0){
9 a=a+1;
10 $assert(a==101);
11 int a=10;
12 $assert(a==10);
13 }
14 $when(a<200){
15 $when(b>0){
16 a=a+1;
17 }
18 $assert(a==101);
19 int a=10;
20 $when(a==10){
21 $assert(b==1);
22 }
23 }
24 }
25 }
26}
Note: See TracBrowser for help on using the repository browser.