git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactored, added stubs for xml operators
[swftools.git]
/
lib
/
as3
/
ok
/
for.as
diff --git
a/lib/as3/ok/for.as
b/lib/as3/ok/for.as
index
d3bd828
..
b7e2b4b
100644
(file)
--- a/
lib/as3/ok/for.as
+++ b/
lib/as3/ok/for.as
@@
-9,15
+9,20
@@
package {
if(a1==100) trace("ok 1/4");
else trace("error");
if(a1==100) trace("ok 1/4");
else trace("error");
- if(a1<50) trace("error");
- else trace("ok 2/4");
+ var a3:int;
+ for(a3=0;a3<100;a3++) {
+ a1++;
+ }
+ if(a1==200) trace("ok 2/4");
+ else trace("error");
- if(a1<150) trace("ok 3/4");
- else trace("error");
+ if(a3==100) trace("ok 3/4");
+ else trace("error");
for(var a2=0;a2<99;a2++) {
for(var a2=0;a2<99;a2++) {
+ if(a2==80) trace("ok 4/4");
}
}
- if(a2==99) trace("ok 4/4");
+ trace("[exit]");
}
}
}
}
}
}