Simple Search based on Three Parameters

The Search should happen even when one element of the form is not Empty.


isParamNotEmpty = false;

if(param1.isNotEmpty())
{
  .
  .
  Other Coding Lines
  .
  isParamNotEmpty = true;
}

if(param2.isNotEmpty())
{
  .
  isParamNotEmpty = true;
}

if(param3.isNotEmpty())
{
  .
  . 
  isParamNotEmpty = true;
}

if(isParamNotEmpty)
{ 
  doSearch(); 
}

Comments are closed.