}
}
// does not contain
else if (cfml.forwardIfCurrent("does","not","contain")){
cfml.removeSpace();
ref=new NCT(ref,concatOp());
hasChanged=true;
}
// equal, eq
else if (cfml.isCurrent("eq") && !cfml.isCurrent("eqv")) {
cfml.setPos(cfml.getPos()+2);
cfml.forwardIfCurrent("ual");
cfml.removeSpace();
ref=new EQ(ref,concatOp());
hasChanged=true;
}
// ==
else if (cfml.forwardIfCurrent("==")) {
if(cfml.forwardIfCurrent('=')) {
cfml.removeSpace();
ref = new EEQ(ref,concatOp());
}
else {
cfml.removeSpace();
ref=new EQ(ref,concatOp());
}
hasChanged=true;
}
// !=
else if (cfml.forwardIfCurrent("!=")) {
if(cfml.forwardIfCurrent('=')) {
cfml.removeSpace();
ref = new NEEQ(ref,concatOp());
}
else {
cfml.removeSpace();
ref=new NEQ(ref,concatOp());
}
hasChanged=true;
}
// <=/</<>
else if (cfml.forwardIfCurrent('<')) {
if(cfml.forwardIfCurrent('=')) {
cfml.removeSpace();
ref = new LTE(ref,concatOp());
}
else if(cfml.forwardIfCurrent('>')) {
cfml.removeSpace();
ref = new NEQ(ref,concatOp());
}
else {
cfml.removeSpace();
ref = new LT(ref,concatOp());
}
hasChanged=true;
}
// >/>=
else if (cfml.forwardIfCurrent('>')) {
if(cfml.forwardIfCurrent('=')) {
cfml.removeSpace();
ref = new GTE(ref,concatOp());
}
else {
cfml.removeSpace();
ref = new GT(ref,concatOp());
}
hasChanged=true;
}
// gt, gte, greater than or equal to, greater than
else if (cfml.isCurrent('g')) {
if (cfml.forwardIfCurrent("gt")) {
if(cfml.forwardIfCurrent('e')) {
cfml.removeSpace();
ref=new GTE(ref,concatOp());
}
else {
cfml.removeSpace();
ref=new GT(ref,concatOp());
}
hasChanged=true;
}
else if (cfml.forwardIfCurrent("greater","than")) {
if(cfml.forwardIfCurrent("or" ,"equal", "to",true)) {
cfml.removeSpace();
ref=new GTE(ref,concatOp());
}
else {
cfml.removeSpace();
ref=new GT(ref,concatOp());
}
hasChanged=true;
}
else if (cfml.forwardIfCurrent("ge")) {
cfml.removeSpace();
ref=new GTE(ref,concatOp());
hasChanged=true;
}
}
// is, is not
else if (cfml.forwardIfCurrent("is")) {
if(cfml.forwardIfCurrent("not",true)) {
cfml.removeSpace();
ref=new NEQ(ref,concatOp());
}
else {
cfml.removeSpace();
ref=new EQ(ref,concatOp());
}
hasChanged=true;
}
// lt, lte, less than, less than or equal to
else if (cfml.isCurrent('l')) {
if (cfml.forwardIfCurrent("lt")) {
if(cfml.forwardIfCurrent('e')) {
cfml.removeSpace();
ref=new LTE(ref,concatOp());
}
else {
cfml.removeSpace();
ref=new LT(ref,concatOp());
}
hasChanged=true;
}
else if (cfml.forwardIfCurrent("less","than")) {
if(cfml.forwardIfCurrent("or", "equal", "to",true)) {
cfml.removeSpace();
ref=new LTE(ref,concatOp());
}
else {
cfml.removeSpace();
ref=new LT(ref,concatOp());
}
hasChanged=true;
}
else if (cfml.forwardIfCurrent("le")) {
cfml.removeSpace();
ref=new LTE(ref,concatOp());
hasChanged=true;
}
}
// neq, not equal, nct
else if (cfml.isCurrent('n')) {
// Not Equal
if (cfml.forwardIfCurrent("neq")) {
cfml.removeSpace();
ref=new NEQ(ref,concatOp());
hasChanged=true;
}
// Not Equal (Alias)
else if (cfml.forwardIfCurrent("not","equal")){
cfml.removeSpace();
ref=new NEQ(ref,concatOp());
hasChanged=true;
}
// nct
else if (cfml.forwardIfCurrent("nct")) {
cfml.removeSpace();
ref=new NCT(ref,concatOp());
hasChanged=true;
}
}
}while(hasChanged);
}