<pre>function interpretCriteria criteres  if the number of lines of criteres  1 then return empty  if line 1 of criteres contains "Criteres:"  then delete line 1 of criteres -- field header  ---------------------------------------------------------------------------  repeat with x = 1 to the number of lines of criteres    put convertAttribut(word 1 of line x of criteres) into attribut    put convertRelation(word 2 of line x of criteres) into relation    delete word 1 to 2 of line x of criteres    put convertValeur(line x of criteres) into valeur    put attribut && relation && valeur && "and " after conditionalStmnt  end repeat  delete last char of conditionalStmnt -- ie.trailing space  delete last word of conditionalStmnt -- ie.trailing and  ---------------------------------------------------------------------------  return conditionalStmntend interpretCriteria</pre>