I have the following integer variables, BasicSalaryFrom & BasicSalaryTo. I have a bool variable called AllBasicSalary. If the user selects AllBasicSalary I want the filter to retrieve all salary records and ignore any value entered in the two integer variables.
What will be the correct way of implementing this ? I tried the following,
Code: Select all
Bonus.Basic_Salary >= BasicSalaryFrom || AllBasicSalary
Bonus.Basic_Salary <= BasicSalaryTo || AllBasicSalary
Thank you