Expressions
- Added Expression::eval short-circuit. - Added int/number exlclusions for Nibbler::getDOM. - Added Variant::boolean for exatracting filter results.
This commit is contained in:
@@ -852,4 +852,12 @@ void Variant::promote (Variant& lhs, Variant& rhs)
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Casts to boolean and returns the value. Used to evaluating expression
|
||||
// results.
|
||||
bool Variant::boolean ()
|
||||
{
|
||||
cast (v_boolean);
|
||||
return mBool;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user