1

The following sentences are error messages a software gives out, when insufficient parameters are provided. ('searchterm' and 'pageindex' are possible parameters.)

  • "You need to specify at least one of 'searchterm' and 'pageindex'."
  • "You need to specify at least one of 'searchterm' or 'pageindex'."

Which of these sentences is grammatically correct? If they are both correct, is there a difference in meaning?

1 Answer 1

2

Both of these are correct and have separate meanings:

"You need to specify at least one of 'searchterm' and 'pageindex': This means you need to have one searchterm and one pageindex. It only works if you have both instances.

"You need to specify at least one of 'searchterm' or 'pageindex': This means you don't need both, only one. One searchterm and zero 'pageindex's would work.

2
  • I think the second part of your answer got cut off, but the first part already answers my question. Thanks for your help. Apr 3, 2020 at 18:26
  • Thanks for letting me know! And you're welcome!
    – user83701
    Apr 3, 2020 at 18:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.