Pathagoras provides a Logic Assistant to help you to construct the equations necessary to perform logical operations within your document.
Activate the Logic Assistant from the Pathagoras Features | Wizards and Assistants. Click the Logic Assistant element. The following screen will appear:
Scan the screen for a second. Note the logic: "If" this value exists, then "perform or set" this value. Here are the steps to complete the assistant.
1.Click one of the radio buttons at the top of the screen. These options reflect the various types of Ask elements that can exist in a document (Options/Optional/Repeats). In our example, we choose Optional because "Are there children?" is presented as an "AskOptional" in the Ask Table.
2.As soon as you click on the Ask element (1), the left and right panels are populated with choices that you can make. At the left, select the element against which you want to apply your logic equation. Here, we want to apply logic against the element 'Children." That is, "IF there are Children . . . do something."
3.Continuing with the "IF' part of the equation, select the appropriate value of the element that is being compared.
4.While this '4' is not a step, we point out that Pathagoras is beginning to construct the logic formula for you. Use this as a reference point if you become confused.
5.Look at the screen below. In the middle panel, make a selection as to which logic step is to be first presented. The choices are simple: to display the 'Ask' associated with the target value, or to set a specific value (True or False, or one of the choices) for the target. The check box reflect which appears first.
6.From the right panel, select the element that will be acted upon (here we have selected 'Minors') based on the value of the selection at the left. Once we select the interrelated elements from the left and right panels,
7.Choose the value of the element from the left panel that is to be measured. In the case of Optional blocks, the only values are "True" or "False". (For "Options" blocks, the values can be any combination of the actual choices.) All two possible actions are shown.
IMPORTANT: Check "where you are" frequently. Always keep an eye to the formula bar (8) that changes every time you make a new selection. None of the instructions above will make sense in the vacuum of this page, but when you see the formula change as you press buttons, we assure you that the Logic Assistant will communicate what it needs. Plus, read the elements of the form. Note the left to right layout and 'descending' displays that make it easier to visualize the formula you are creating.
8.Check the formula bar to make sure that the "If (THIS), then (THIS), else (THIS)" is what you desire.
9.Make changes as needed. When done, click the Transfer button.
When you click the Transfer button, Pathagoras hunts down the element in the Ask table that is associated with the target (in this case "Minors') and replaces it with the formula. So the Ask table shown at the top of this page will now look like this (check out the 4th row):
Here is the logic equation found in the 4th row, in 'English':
"If there are children, then ask the question 'Are there minor children?'
Otherwise, set the value of the !Minors! group to 'False' ."