Pattern Logic Sets
What it Doesโ
Lets a value in your draft change depending on a condition. A logic set is a short list of IF and THEN rules. Each rule compares two values, called X and Y. If the comparison is true, the rule gives one result. If it is false, the rule gives a different result or passes the question on to the next rule.
Use this when one number should not be the same for every size. For example, use one dart depth when the bust measurement is under a certain size and another when it is over.
This is an advanced tool. Learn Entering Values and formulas first. A logic set can make one measurement change the shape of a whole draft, so build and test it with care.
Logic sets belong to the draft you build them in. They are not saved to a library for other drafts.
The logic set needs a name. If the Logic Set Name box is empty, a message asks you to enter one.
Memorization
When you memorize a draft, the logic set is remembered, so it can be used when you recall the pattern.
How a Rule Worksโ
Each rule has five parts:
X Formulais the value you check, such as a measurement or the distance between two points.- The operator says how X is compared with Y. The choices are
> Greater than,< Less than,= Exactly equal to,>= Greater than or equal toand<= Less than or equal to. Y Formulais the value X is compared with.If Trueis the value or formula to use when the comparison is true.If Falseis what to do when it is not true. Either give a value or formula, or send PMP on to check another rule.
PMP checks the rules in order. The first rule that gives an answer ends the check. X and Y are rounded to two decimal places before they are compared, so tiny differences do not change the result.
For example, a set could say: IF Bust is greater than 40, THEN 2, ELSE check another rule. A second rule could say: IF Bust is greater than 36, THEN 1.5, ELSE 1.
How to Useโ
Create a new logic setโ
- Activate the tool by selecting the
Logic Seticon - Select
Create a New Logic Set, then selectContinue - Enter a
Logic Set Name, then selectNext - Enter the
X Formula, then selectNext - Select an
Operator, then selectNext - Enter the
Y Formula, then selectNext - Enter the
If Truevalue or formula, then selectNext - Under
If False, selectUse a Value/Formulato end the set with a final answer, or selectCheck Another Ruleto add more rules. Then selectNext - If you chose
Use a Value/Formula, enter theIf Falsevalue or formula, then selectNext. The set is finished - If you chose
Check Another Rule, PMP records the rule. SelectContinueand repeat the steps fromX Formulafor the next rule. Each rule is numbered, starting with Rule #1 - The workspace shows the whole set as a list of rules. Select
Saveto keep it, orCancelto discard it
The X Formula, Y Formula, If True and If False boxes work like other input boxes. Type a number, or select Add Formula and use the Select from Measurement Set list (when a measurement set is loaded), Measure Between Points or Point Position. For Point Position, click a point in the workspace first, then select Point X Position or Point Y Position. The value of that point's position is used in the rule. With Point Position, you select a point and then choose Point X Position or Point Y Position to use that point's across or up and down position. Select Calculate to put the value in the box. Logic sets cannot be placed inside other logic sets.
View or delete an existing setโ
- Activate the tool by selecting the
Logic Seticon - Select
View / Delete an Existing Set, then selectContinue - Select a set from the
Logic Setslist, then selectContinue. If the list is empty, the draft has no logic sets. SelectCancelto leave - The workspace shows the set. Select
Closeto leave it as it is, or selectDelete Logic Setto remove it from the draft for good
A deleted logic set cannot be brought back. Any formula that used it will give 0.
Using a Logic Set in a Formulaโ
Once a draft has at least one logic set, other tools show it in the formula options. Select Add Formula beside an input box, then choose your set from the Select from Logic Sets list. PMP puts the set into the formula and uses the result of its rules as the value. You can combine it with other numbers and math in the same formula.
Cautionsโ
If you delete a point that a logic set uses, the set has a broken link. PMP does not crash. It uses 0 for that value, so your draft may come out wrong.
When you open an existing draft, load the measurement set before you use a logic set that refers to measurements. If the set is not loaded, the logic cannot be worked out.