First steps to logical operators.

functions
Justyna Ilczuk 2012-12-22 15:48:26 +01:00
parent eed9925160
commit 4b8baa58e6
1 changed files with 9 additions and 0 deletions

View File

@ -106,6 +106,15 @@ SenchaObject BasicExpression::evaluate()
{
so = SenchaObject(left < right);
}
//TODO actually those should get through parser
else if(oper == "&&")
{
so = SenchaObject(left.is_true() && right.is_true());
}
else if(oper == "||")
{
so = SenchaObject(left.is_true() || right.is_true());
}
return so;
}