Mercurial Hosting > luan
comparison src/luan/interp/IfStmt.java @ 49:8ede219cd111
add WebShell
git-svn-id: https://luan-java.googlecode.com/svn/trunk@50 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 28 Dec 2012 19:35:04 +0000 |
parents | 64ecb7a3aad7 |
children | c9100f29fae0 |
comparison
equal
deleted
inserted
replaced
48:64ecb7a3aad7 | 49:8ede219cd111 |
---|---|
13 this.cnd = cnd; | 13 this.cnd = cnd; |
14 this.thenStmt = thenStmt; | 14 this.thenStmt = thenStmt; |
15 this.elseStmt = elseStmt; | 15 this.elseStmt = elseStmt; |
16 } | 16 } |
17 | 17 |
18 @Override public void eval(LuanStateImpl lua) throws LuanException { | 18 @Override public void eval(LuanStateImpl luan) throws LuanException { |
19 if( Luan.toBoolean( cnd.eval(lua) ) ) { | 19 if( Luan.toBoolean( cnd.eval(luan) ) ) { |
20 thenStmt.eval(lua); | 20 thenStmt.eval(luan); |
21 } else { | 21 } else { |
22 elseStmt.eval(lua); | 22 elseStmt.eval(luan); |
23 } | 23 } |
24 } | 24 } |
25 } | 25 } |