samedi 10 septembre 2016

Tring to get condition operator by Expression language

I'm using the following code to get condition object by rest api,this object have operator and response fields ,I'm trying to use them in if condition statement like

if(response  condition.operator condition.response) 

condition.operator should be < , > , == or else ,So how to get condition operator by EL?

Full code

  Condition.getCondition({id:id}).$promise.then(function(condition){
   if(response  condition.operator condition.response){
    console.log("")
   }
 });

Aucun commentaire:

Enregistrer un commentaire