First steps to logical operators.
parent
eed9925160
commit
4b8baa58e6
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue