Evaluate expression, check it's a bool, and return 1 or 0
| 229 | |
| 230 | /// Evaluate expression, check it's a bool, and return 1 or 0 |
| 231 | double generate(const Context& ctx) override { |
| 232 | return toBool(expr->generate(ctx)) ? 0.0 : 1.0; |
| 233 | } |
| 234 | |
| 235 | std::string str() const override { return "!"s + expr->str(); } |
| 236 |