Boolean Exclusive Or (XOR)

Ken
Ken Member Posts: 33 ✭✭
edited November 2024 in English Forum

Hi,

Anyone know if Logos has "exclusive or" function for a search?  I don't see it included in the boolean expressions unless I missed something.  For instance, search for verses where Jesus is referenced by Jesus or Christ but not both.

Thanks, Ken

Ken

Comments

  • Rosie Perera
    Rosie Perera Member Posts: 26,194 ✭✭✭✭✭

    The simple XOR operation doesn't exist, but you can construct it using ((x OR y) ANDNOT (x AND y))

  • Mark Barnes
    Mark Barnes Member Posts: 15,432 ✭✭✭

    There isn't one, sorry. The closest I could come up with quickly is (Jesus, Christ) ANDNOT (Jesus WITHIN 1 WORD Christ), although the first result might be considered a false positive. It's not perfect, because it would exclude verses like Romans 8:11 "If the Spirit of him who raised Jesus from the dead dwells in you, he who raised Christ Jesus from the dead will also give life to your mortal bodies through his Spirit who dwells in you." I presume the first result from that verse should be found, but my search wouldn't find it.

    This is my personal Faithlife account. On 1 March 2022, I started working for Faithlife, and have a new 'official' user account. Posts on this account shouldn't be taken as official Faithlife views!

  • Ken
    Ken Member Posts: 33 ✭✭

    Thanks for the workarounds.  Hopefully they will include one at sometime.  It shouldn't be too hard to add.  The workarounds get pretty long when you search exclusively for the fruit of the Spirit :)

    Ken

  • Nathan Parker
    Nathan Parker Member Posts: 814 ✭✭✭

    I needed this search command this week as well when working in the SBL GNT. I managed to get close to it by using (term OR term) NOT (term AND term).

    Dr. Nathan Parker

  • MJ. Smith
    MJ. Smith MVP Posts: 54,977

     I managed to get close to it by using (term OR term) NOT (term AND term).

    Just close????

    Orthodox Bishop Alfeyev: "To be a theologian means to have experience of a personal encounter with God through prayer and worship."; Orthodox proverb: "We know where the Church is, we do not know where it is not."

  • Nathan Parker
    Nathan Parker Member Posts: 814 ✭✭✭

    I need to try the search with the NA28 and compare it with an XOR search in another tool on the NA28 and see if it's identical. If so, then might have been what I ran on the SBL GNT.

    Dr. Nathan Parker

  • MJ. Smith
    MJ. Smith MVP Posts: 54,977

    Truth tables should establish that they are identical. The definition of XOR is "either A or B but not both".

    Orthodox Bishop Alfeyev: "To be a theologian means to have experience of a personal encounter with God through prayer and worship."; Orthodox proverb: "We know where the Church is, we do not know where it is not."

  • Nathan Parker
    Nathan Parker Member Posts: 814 ✭✭✭

    I think it's working now. I had a tiny typo in one of my words. :-)

    Dr. Nathan Parker