Evaluate a visibility expression string and return it
| 5857 | |
| 5858 | // Evaluate a visibility expression string and return it |
| 5859 | bool GCodes::EvaluateConditionForDisplay(const char *_ecv_array str) const noexcept |
| 5860 | { |
| 5861 | try |
| 5862 | { |
| 5863 | ExpressionParser parser(LcdGCode(), str, str + strlen(str)); |
| 5864 | return parser.ParseBoolean(); |
| 5865 | } |
| 5866 | catch (const GCodeException&) |
| 5867 | { |
| 5868 | return false; |
| 5869 | } |
| 5870 | } |
| 5871 | |
| 5872 | // Evaluate a value string returning true if an error occurred |
| 5873 | bool GCodes::EvaluateValueForDisplay(const char *_ecv_array str, ExpressionValue& expr) const noexcept |