Volume 2 Chapter 8 Quest Sub-menu CONTENTS
QUESTION LOGIC is concerned with how to compose a search query in terms of:
Before considering how to compose the search question in the QUEST sub-menu it will be helpful to discuss how the program handles the search question.
Note, however, that the following two instructions are equivalent:
Unnecessary tests will never be performed and this means that care should be taken to ensure that the most efficiently executed tests are executed first.
Consider QUES (T1 .OR. T2) .AND. (T3)
T1 will be tested first. If it succeeds T2 will not be executed and the program will skip to test T3.
If T1 and T2 both fail then T3 will not be executed.
A suggested order of tests to achieve maximum efficiency is:
Thus:
QUES (T1) .AND. (T2 .OR. T3)
is equivalent to:
QUES T1 .AND. T2 .OR. T3
and
QUES (.NOT.T4) .AND. (T1 .AND. T2)
is equivalent to:
QUES T1 .NOT. T4 .AND. T2
Graphics QUEST3D Procedure
Having defined tests Tn selection of the command QUEST in the BUILD or SEARCH menus will display the QUEST sub-menu.
The tests are displayed, each in a box, in the diagram area of the screen.
In the top right-hand corner of the menu are the logical operators and parentheses to be used for construction of the search question.
The logical operator .AND. is the default, as indicated by the red box surrounding it.
In the dialogue area there is:
The current QUEST line is: QUEST Please select a test or a logical operator. Select "START-SEARCH" to begin.
Suppose 3 tests have been defined. A few examples will illustrate how to compose the QUEST line:
Ex.1
QUES T T1 .AND. T2
Ex.2
QUES T T1. OR. T2
Ex.3
QUES T (T1) .AND. (T2 .OR. T3)
ACTION ACTIVE OPERATOR CONTENTS OF QUESTION LINE
Ex.1
.AND. QUEST
Select T1 .AND. QUEST T1
Select T2 .AND. QUEST T1 .AND. T2
Ex.2
.AND. QUEST
Select T1 .AND. QUEST T1
Select .OR. .OR. QUEST T1
Select T2 .OR. QUEST T1 .OR. T2
Ex.3
.AND. QUEST
Select ( .AND. QUEST (
Select T1 .AND. QUEST (T1
Select ) .AND. QUEST (T1)
Select ( .AND. QUEST (T1) .AND. (
Select T2 .AND. QUEST (T1) .AND. (T2
Select .OR. .OR. QUEST (T1) .AND. (T2
Select T3 .OR. QUEST (T1) .AND. (T2 .OR. T3
Select ) .OR. QUEST (T1) .AND. (T2 .OR. T3)
As indicated above, once the search question has been correctly composed the
search can be initiated by selecting START-SEARCH.