Search code examples
language-agnosticlogicplatform-independent

Language independent logic question


If one has three fields in a db that they are querying an object by.... One of these fields must always be an associations id. Concerning the other two fields "only one needs to be true"

What interpretation do you take or make of "only one needs to be true"?


Solution

  • I'd read that as OR, only one needs to be true, but I won't object if the other is too.

    If I meant EXCLUSIVE OR I would say "exactly one must be true".

    However, the only way to be sure what was intended is to ask the author, who may well surprise you by telling you about yet a further condition ;-(