comparison core/src/luan/impl/IfStmt.java @ 576:4723d22062ce

remove LuanBit
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 13 Jul 2015 20:38:26 -0600
parents b48cfa14ba60
children 859c0dedc8b6
comparison
equal deleted inserted replaced
575:7c3ad6db8ac3 576:4723d22062ce
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(cnd.el()).checkBoolean( cnd.eval(luan) ) ) { 21 if( luan.checkBoolean( cnd.eval(luan), cnd.el() ) ) {
22 thenStmt.eval(luan); 22 thenStmt.eval(luan);
23 } else { 23 } else {
24 elseStmt.eval(luan); 24 elseStmt.eval(luan);
25 } 25 }
26 } 26 }