X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Fok%2Fif.as;h=3b4d4ddbac7001f6c84608179ace554e8937994d;hb=639ac6b9f7a89f10d02c5d9ef41bca3bad4eaf2b;hp=1d6c6e68a9e1c9fc4abec1a9af3bd492126b9b3e;hpb=50fd04a2bb9b2a8f374ea99446f6631606704c6c;p=swftools.git diff --git a/lib/as3/ok/if.as b/lib/as3/ok/if.as index 1d6c6e6..3b4d4dd 100644 --- a/lib/as3/ok/if.as +++ b/lib/as3/ok/if.as @@ -1,15 +1,21 @@ -package test.mypackage { +package { import flash.display.MovieClip; public class Main extends flash.display.MovieClip { function Main() { - if(true) trace("ok 1/4"); + if(true) trace("ok 1/5"); if(false) trace("error"); - if(1+1==2) trace("ok 2/4"); + if(1+1==2) trace("ok 2/5"); if(1+1==3) trace("error"); if(1+1!=2) trace("error"); - if(1+2==3) trace("ok 3/4"); + if(1+2==3) trace("ok 3/5"); - if(1+1==3) {} else {trace("ok 4/4");} + if(1+1==3) {} else {trace("ok 4/5");} + + if(false) trace("error"); + else if(false) trace("error"); + else if(true) trace("ok 5/5"); + else if(false) trace("error"); + trace("[exit]"); } } }