diff options
-rw-r--r-- | src/value.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/value.cc b/src/value.cc index 54a6038f..96c8e269 100644 --- a/src/value.cc +++ b/src/value.cc @@ -94,7 +94,13 @@ value_t::operator bool() const case STRING: return ! as_string().empty(); case SEQUENCE: - return ! as_sequence().empty(); + if (! as_sequence().empty()) { + foreach (const value_t& value, as_sequence()) { + if (value) + return true; + } + } + return false; case POINTER: return ! as_any_pointer().empty(); default: |