Mercurial Hosting > luan
comparison core/src/luan/impl/IfStmt.java @ 191:2456ef7ada02
minor
git-svn-id: https://luan-java.googlecode.com/svn/trunk@192 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Tue, 01 Jul 2014 06:40:48 +0000 |
parents | 3dcb0f9bee82 |
children | b48cfa14ba60 |
comparison
equal
deleted
inserted
replaced
190:04b86428dc50 | 191:2456ef7ada02 |
---|---|
16 this.thenStmt = thenStmt; | 16 this.thenStmt = thenStmt; |
17 this.elseStmt = elseStmt; | 17 this.elseStmt = elseStmt; |
18 } | 18 } |
19 | 19 |
20 @Override public void eval(LuanStateImpl luan) throws LuanException { | 20 @Override public void eval(LuanStateImpl luan) throws LuanException { |
21 if( luan.bit(se).checkBoolean( cnd.eval(luan) ) ) { | 21 if( luan.bit(cnd.se()).checkBoolean( cnd.eval(luan) ) ) { |
22 thenStmt.eval(luan); | 22 thenStmt.eval(luan); |
23 } else { | 23 } else { |
24 elseStmt.eval(luan); | 24 elseStmt.eval(luan); |
25 } | 25 } |
26 } | 26 } |