Skip to content
Snippets Groups Projects
Commit ea4cbf11 authored by Francois Henrotte's avatar Francois Henrotte
Browse files

bug corrected in logical expressions

parent 3db9df87
Branches
Tags
No related merge requests found
...@@ -78,7 +78,7 @@ int extractLogic(const std::string &in, std::vector<std::string> &arguments){ ...@@ -78,7 +78,7 @@ int extractLogic(const std::string &in, std::vector<std::string> &arguments){
do{ do{
if(in[pos]=='(') count++; if(in[pos]=='(') count++;
if(in[pos]==')') count--; if(in[pos]==')') count--;
if( (in[pos]=='<') || (in[pos]=='=') || (in[pos]=='>') ){ if( (in[pos]=='<') || (in[pos]=='=') || (in[pos]=='>') || (in[pos]=='!') ){
arguments.push_back(removeBlanks(in.substr(cursor,pos-cursor))); arguments.push_back(removeBlanks(in.substr(cursor,pos-cursor)));
if(count!=1) if(count!=1)
OLMsg::Fatal("Syntax error: <%s>",in.c_str()); OLMsg::Fatal("Syntax error: <%s>",in.c_str());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment