From 49e3f9a3a7acba5db5ea415e4487c3d200d26454 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Tue, 28 Feb 2017 18:58:12 +0100 Subject: -Add : compare operator to ask the if operator to compare the scalar result. --- parsingtoolbox.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'parsingtoolbox.cpp') diff --git a/parsingtoolbox.cpp b/parsingtoolbox.cpp index 3d2d2c3..1e8819c 100644 --- a/parsingtoolbox.cpp +++ b/parsingtoolbox.cpp @@ -213,6 +213,11 @@ IfNode::ConditionType ParsingToolBox::readConditionType(QString& str) str=str.remove(0,1); type = IfNode::AllOfThem; } + else if(str.startsWith(':')) + { + str=str.remove(0,1); + type = IfNode::OnScalar; + } return type; } -- cgit v1.2.3-70-g09d2