mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
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:
parent
6a48d86f2c
commit
4fca40fc69
4 changed files with 63 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue