Skip to main content
 Pattern Logic Sets Icon

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.

info

Logic sets belong to the draft you build them in. They are not saved to a library for other drafts.

info

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 Formula is 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 to and <= Less than or equal to.
  • Y Formula is the value X is compared with.
  • If True is the value or formula to use when the comparison is true.
  • If False is 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โ€‹

  1. Activate the tool by selecting the Logic Set icon
  2. Select Create a New Logic Set, then select Continue
  3. Enter a Logic Set Name, then select Next
  4. Enter the X Formula, then select Next
  5. Select an Operator, then select Next
  6. Enter the Y Formula, then select Next
  7. Enter the If True value or formula, then select Next
  8. Under If False, select Use a Value/Formula to end the set with a final answer, or select Check Another Rule to add more rules. Then select Next
  9. If you chose Use a Value/Formula, enter the If False value or formula, then select Next. The set is finished
  10. If you chose Check Another Rule, PMP records the rule. Select Continue and repeat the steps from X Formula for the next rule. Each rule is numbered, starting with Rule #1
  11. The workspace shows the whole set as a list of rules. Select Save to keep it, or Cancel to 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โ€‹

  1. Activate the tool by selecting the Logic Set icon
  2. Select View / Delete an Existing Set, then select Continue
  3. Select a set from the Logic Sets list, then select Continue. If the list is empty, the draft has no logic sets. Select Cancel to leave
  4. The workspace shows the set. Select Close to leave it as it is, or select Delete Logic Set to remove it from the draft for good
warning

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โ€‹

Broken Link

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.

warning

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.