| 31 | } |
| 32 | |
| 33 | QString VectorValue::getValueString() const |
| 34 | { |
| 35 | QString result; |
| 36 | result.append("["); |
| 37 | OnceOnly first; |
| 38 | for(Value* v: elements) { |
| 39 | if(!first()) |
| 40 | result.append(","); |
| 41 | result.append(v->getValueString()); |
| 42 | } |
| 43 | result.append("]"); |
| 44 | return result; |
| 45 | } |
| 46 | |
| 47 | bool VectorValue::isTrue() const |
| 48 | { |