search for: myparamt

Displaying 1 result from an estimated 1 matches for "myparamt".

Did you mean: myparam
2006 Jul 18
5
a best way to write this.
I have a form, with 3 fields, then in my controller I get the paramters to run a query but I don''t want to filter with paramters if they are nil or blank... I''m doing this @condition = '''' if(params.....) @condition = @condition + " myparamter = " + params[..... if(params.....) @condition = @condition + " myparamter = " + params[..... if(params.....) @condition = @condition + " myparamter = " + params[..... but there is a best way to do this? more simple and more beautiful ? tks