1 Reply Latest reply on Apr 8, 2011 10:52 AM by Lance Leverich

    Function Arguments

    Guy Moas Newbie

      Hi,

       

      I would like to pass valus from paramters to my arguments function from the DSL

       

      E.g.

       

      [when]Eligible is valid = eval(isEligible(10,22 ))[then]client.setEligibility(true)

       

      Expected:passing variables instead of the actual values

       

       

       

      The actual function:

       

      function boolean isEligible(int service,int age) {

      if(service>f_service and age >f_age)

        return true;

      else

        return false;

      }

       

      Thank you

       

      Guy

        • 1. Function Arguments
          Lance Leverich Newbie

          Just to clarify your question, are you wanting to have values in the function definition as variables?  Or do you want the values in the function call to be variables?  If you want the variables to be in the function call then it should be something like this...

           

          [when]Eligible is valid when service is {service_value} and age is {age_value} = eval(isEligible({service_value},{age_value}))