Jump to content


some thoughts about <and> command

  • Please log in to reply
3 replies to this topic

#1 Ken Han

Ken Han


  • Active Members
  • PipPipPipPipPip
  • 687 posts
  • Gender:Male
  • Location:San Diego, CA
  • Accordance Version:12.x
  • Platforms:Mac OS X, iOS

Posted 14 March 2014 - 01:23 PM

When I want to find, e.g. "man" and "god" appearing in the same verse with search scope set to verse I can search for:


man <and> god


which returns any verses where the words "man" and "god" are found together, in any order. This is expected.


But if I want to find a verse, e.g. that twice mentions "man" 


man <and> man


will not return what I expect, as the returned results show verses with single occurrence of "man". Searching, instead, for


man <followed by> man


will return what I expect, displaying verses that have "man" twice.


I tend to think of <and> as a condition that is satisfied only when what is left of it and right of it are both true. And that is how Accordance Help explains it. From Help: "X <AND> Z finds verses whereX and Z are both present." But when what is to the left and to the right of <and> are the **same**, then the operating logic seems inconsistent, treating "man <and> man" as equivalent to a simple string search of "man", but that is not what <and> operator implies.


I wonder if the <and> logic can be adjusted so that when what is to its left and its right are the same, <and> returns expected results of ...man...man...

Edited by Ken Han, 14 March 2014 - 01:25 PM.

  • Graham Buck likes this
Rev. Ken Han

Grace Fallbrook (PCA)

#2 Nicholous Rogers

Nicholous Rogers


  • Active Members
  • PipPipPip
  • 108 posts
  • Gender:Male
  • Location:Orangeburg, South Carolina
  • Interests:Currently studying Greek Grammar through www.teknia.com
  • Accordance Version:12.x
  • Platforms:Windows

Posted 14 March 2014 - 03:51 PM

well, I should have read your post more closely and I would have seen that you've already done that




Hi Ken, you might try <FOLLOWED BY>   I think that will get you the results you're looking for.



Edited by Nicholous Rogers, 14 March 2014 - 03:55 PM.

Nicholous Rogers


Accordance 12 Closed Beta w/ Bible Study Collection


Windows 10 Insider Preview (build #17046.1000)


HP Pavilion HPE h8-9090t CTO Desktop



Samsung Galaxy Note Pro 12.1

Samsung Note 8

Amazon Kindles of various types

#3 Steve King

Steve King


  • Active Members
  • PipPipPipPipPip
  • 646 posts
  • Gender:Male
  • Location:Hoddesdon, Hertfordshire, UK
  • Accordance Version:12.x
  • Platforms:Mac OS X, iOS

Posted 14 March 2014 - 06:57 PM

I can see why you are thinking along those lines but it does not match the standard use of AND in computing. In computing terms the left and right of the <AND> are treated separately. So the comparison of the left 'man' is made against the scope then the right 'man' is made against the scope. The <AND> says nothing about the relationship between the two words other than they are both found in the scope.


To be honest that is why there are other commands that are are more specific (e.g. FOLLOWED BY). It includes a relationship between the two words which must also be true.

Steve King Running Accordance on:


Mac 10.13.3 (High Sierra), late 2017 15 inch Macbook Pro, 16Gb RAM

iPad2 IOS 9

iPhone 6 IOS 11

#4 Helen Brown

Helen Brown


  • Admin
  • 10,960 posts
  • Twitter:accordancebible
  • Gender:Female
  • Location:heart in Israel
  • Accordance Version:12.x
  • Platforms:Mac OS X, Windows, iOS, Android

Posted 15 March 2014 - 12:08 AM

The Construct window is much more accurate for defining searches like this, even three occurrences or more in a scope.

Helen Brown
OakTree Software

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users