Conditions

<AssociateTypeCondition>

Checks that an Associate is a specific Associate type.

AttributeDescription
AssociateBaseTypeNumber representing the Associate Type.

Example

<Rule Name="Customer" Description="Retail Customer">
  <And>
    
    <AssociateTypeCondition AssociateBaseType="2" />
  
  </And>
</Rule>


<EarnedBonus>

Checks to see if an Associate has earned Bonus in the past.

AttributeDescription
BonusThe ID of the Bonus that may have been earned.

Example

<EarnedBonus Bonus="" />


<EnrolledInCondition>

Checks to see if an Associate enrolled in TimeSpan or VolumeRange.

AttributeDescription
VolumeRangeThe ID of the VolumeRange.
Begin and EndTime span representing the time from the beginning of the period. For example, the last 30 days.

Example

<Rule Name="QualifiedPeriod" Description="Enrolled in the qualified period">
   <And>
     <EnrolledInConditionT Begin="6/1/2019" End="12/30/9999" />
   </And>
</Rule>
<Rule Name="NewEnrollee" Description="New Enrollee">
  <And>
    <AssociateTypeCondition AssociateBaseType="1" />
    
    <EnrolledInCondition VolumeRange="Monthly" />
  </And>
</Rule>


<ExpiresOnCondition>

Checks to see if the current period is before ExpireDate.

AttributeDescription
ExpireDateDate to expire on.

Example

<ExpiresOnCondition ExpireDate="" />


<FastStartCondition>

Checks to see if a Fast Start was purchased in VolumeRange.

AttributeDescription
IndexThe Fast Start index to check.
VolumeRangeThe ID of the Volume Range.

Example

<FastStartCondition Index="" VolumeRange="" />


<GenerationGVCondition>

Associates on Level Generation in Tree has combined PV of Min.

AttributeDescription
AssociateBaseType
Tree
Generation
Min
Max

Example

<GenerationGVCondition AssociateBaseType="" Tree="" Generation="" Min="" Max="" />


<GVCondition>

Cheks that Associates has TreeVolume within Min and Max. PersonalVolume can be included if needed.

AttributeDescription
TreeVolumeTree Volume to get the volume from.
MinMinimum volume needed to meet condition.
MaxMaximum volume before condition is false.
MaxPerLegMaximum GV that can come from each leg.
PersonalVolumeIf personal volume is need, The Volume to use for personal volume. This has it's own cap and does not use MaxPerLeg.
MaxPersonalThe maximum personal volume that can contribute.

Example

<Rule Description="Leading Affiliate" Name="LA">
  <And>
    <PVCondition Max="-1" Min="300" Volume="PS" />
    
    <GVCondition PersonalVolume="PS" MaxPersonal="-1" IncludeCompressed="True" CompressRule="" Level="-1" MaxPerLeg="-1" Max="-1" Min="1000" TreeVolume="TS" />
  
  </And>
  <Result>
    <SetRank Rank="20" />
  </Result>
</Rule>


<HasKitCondition>

Checks to see if a Kit of KitLevel was purchased.

AttributeDescription
KitLevelThe Kit Level from Inventory Item.
GreaterThanIf true, a Kit Level greater than KitLevel will be accepted as true. Otherwise the exact Kit Level is needed.
InCurrentPeriodIf true, the kit would need to be purchased within the current commission period.

Example

<Rule Description="New products eligible" Name="New">
  <And>
    
    <HasKitCondition KitLevel="9" GreaterThan="false" InCurrentPeriod="false" />
  
  </And>
  <Result>
    <SetStat Name="Kit" Description="Purchased product" />
  </Result>
</Rule>


<HasLegRule>

Checks Tree to see if Leg has a node in it.

AttributeDescription
TreeThe tree to check in.
LegThe leg to check for.

Example

<HasLegRule tree="Enrollment" Leg="">


<HighRankCondition>

Checks to see if Rank was reached in the past.

AttributeDescription
RankThe number of the rank that is needs to be reached.
ExactMatchIf true, a rank higher than Rank can't have been reached.
VolumeRange
TemplateName

Example

<HighRankCondition Rank="" ExactMatch="" VolumeRange="" TemplateName="" />


<HitRuleConsecutive>

Checks to see if Rule was hit ConsecutiveTimes.

AttributeDescription
ConsecutiveTimesThe number of times the Rule must be met.
GracePeriodsGracePeriods is the number of periods that the Rule can be missed and still count as hitting the consecutive.
GraceBeginGraceBegin is how many times Rule must be met before the GracePeriods can start to be used.
RuleThe rule that must be met ConsecutiveTimes

Example

<HitRuleConsecutive ConsecutiveTimes="" GracePeriods="" GraceBegin="" Rule="" />


<HitRulePrevious>

Checks to see if Rule was hit in a past period.

AttributeDescription
RuleThe Rule to check for
PrevIndexBeginHow many periods back to begin checking to see if Rule was hit.
PrevIndexEndHow many periods back to stop checking to see if Rule was hit.
UseIndexThis must be true for PrevIndexBegin and PrevIndexEnd to work. If false, it will check all past periods.
TemplateNameUsed if the rule is from a different template.

Example

<Rule Name="PreviouslyActive" Description="Associate or Retail Customer that has 75 PV in the last period">
  <And>
    
    <HitRulePrevious Rule="Active" PrevIndexBegin="1" PrevIndexEnd="1" UseIndex="True" />
  
  </And>
</Rule>


<InCodingTreeCondition>

Check to coding tree to see if Count Associates have hit Rule.

AttributeDescription
CodingRankThe rank for the coding tree to check.
CountHow many associates need to meet Rule.
Rule: The rule to check.
PersonallyEnrolledIf true, The associates that meet Rule must also be personally enrolled in order to contribute to Count.

Example

<InCodingTreeCondition CodingRank="" Count="" Rule="" PersonallyEnrolled="" />


<InCountryCondition>

Checks that an Associate resides in Country.

AttributeDescription
CountryThe ISO country code to check against. There can be multiple countries.

Example

<InCountryCondition Country="US,CA" />


<InIDListCondition>

Checks the ID of an Associate to see if it is in a list of IDs.

AttributeDescription
IDListThe list of Associate IDs to check against.

Example

<InIDListCondition IDList="257,189,343" />


<InLegCondition>

Checks to see if there are Count Associates in Leg of Tree that have hit Rule.

AttributeDescription
RootTreeGets the list of associates to check from generation 1 of this tree.
TreeThe tree that contains the Leg to check.
CountThe number of associates that need to meet Rule.
RuleThe rule that the associates needed to have hit.
LegThe leg to check the Count in.

Example

<InLegCondition RootTree="" Tree="" Leg="" Count="" Rule="" />


<IsInRegionCondition>

Checks that an Associate resides in RegionId.

AttributeDescription
RegionIdsThe region ID to check against. There can be multiple regions.

Example

<IsInRegionCondition RegionIds="3,7" />


<LastRankCondition>

Checks to see if Rank was reached last period.

AttributeDescription
RankThe number of the rank that is needs to be reached.
ExactMatchIf true, a rank higher than Rank cannot have been reached

Example

<LastRankCondition Rank="40" ExactMatch="True" />


<LegGVCondition>

Checks to see if Leg has Group Volume (GV) equal to or greater than Min and not over Max.

AttributeCondition
TreeThe Tree Volume to get volume from.
LegThe leg to check GV volume type.
MinThe minimum amount of GV needed to meet the condition.
MaxIf GV is greater than Max, the condition will not be met.
RolloverMaxThe maximum volume that can come from rollover.
NewMaxThe maximum volume that can come from standard, not rollover, volume.

Example

<LegGVCondition Tree="" Leg="" Min="" Max="" RolloverMax="" NewMax="" />


<LegsWithRule>

Checks to see if there are RequiredLegs in Tree that have at least one Associate that hit Rule.

AttributeCondition
TreeThe tree to check in.
RequiredLegsThe number of legs that need at least one associate that hit Rule.
RuleThe rule to check for.
PersonalSponsoredIf true, only count associates that are personally sponsored

Example

<LegsWithRule Tree=""RequiredLegs="" Rule="" PersonalSponsored="">


<LegWithRule>

Checks to see if there are Count associates in Leg that have hit Rule.

AttributeCondition
TreeThe tree to check in.
LegThe leg to check in.
RuleThe rule to see if associates have hit.
CountThe number of associates that need to meet Rule for this to be true.
PersonalEnrolledIf true, The associates that meet Rule must also be personally sponsored.
MaxRolloverThe maximum rollover to use if Leg is weak or strong when finding the proper leg.
TreeVolumeThe volume to use to find the proper leg if Leg is weak or strong.

Example

<LegWithRule Tree="" Leg="" Rule="" Count="" PersonalEnrolled="" MaxRollover="" TreeVolume="">


<Level1Condition>

Checks that there are Count Associates in the first generation of Tree.

AttributeCondition
TreeThe tree to check in.
RuleThe rule to check for.
CountThe number of associates that needed to have hit Rule.

Example

<Rule Description="Nano Influencer" Name="NI">
  <And>
    <PVCondition Max="-1" Min="500" Volume="PS" />
    <GVCondition PersonalVolume="PS" MaxPersonal="1250" IncludeCompressed="True" CompressRule="" Level="-1" MaxPerLeg="1250" Max="-1" Min="2500" TreeVolume="TS" />
    
    <Level1Condition Tree="Enrollment" Count="1" Rule="BLeg" />
  
  </And>
  <Result>
    <SetRank Rank="40" />
  </Result>


<LevelCondition>

Checks that there are Count Associates in Generation of Tree.

AttributeCondition
TreeThe tree to check in.
RuleThe rule to check for.
CountThe number of associates that needed to have hit Rule.
GenerationThe generation to check Count in.
CompressRuleAn optional rule to use for compression when determining Generation.
PersonalEnrolledIf true, the associate that meet Rule must also be personally sponsored.

Example

<LevelCondition Tree="" Generations="" CompressRule="" Count="" Rule="" PersonalEnrolled="" />


<NewGVCondition>

AttributeCondition
AssociateBaseType
Tree
Generation
Min
Max
PeriodStart

Example

<NewGVCondition PeriodStart="" AssociateBaseType="" Tree="" Generation="" Min="" Max="" />


<NotHitRule>

AttributeCondition
RuleRule to not hit.

Example

<And>
  <MeetsRule Rule="NI" />
  
  <NotHitRule Rule="BLeg" />
</And>


<NotHitRulePrevious>

AttributeCondition
Rule
PrevIndexBegin
PrevIndexEnd
UseIndex

Example

<Rule>
  <And>
    <MeetsRule Rule="NI" />
    <MeetsRule Rule="NGenQ" />
    <MeetsRule Rule="LI" />
    
    <NotHitRulePrevious Rule="SI" UseIndex="False" PrevIndexBegin="1" PrevIndexEnd="1" />
  
  </And>
</Rule>


<PaidOnCondition>

Checks to see if Associate was paid on a specific Bonus.

AttributeCondition
BonusThe bonus to check for to see if the associate has been paid on.
RuleThe rule containing the Bonus.
TagThe tag of the bonus if needed.
IncludePastPeriodsIf true, this will check to see if Bonus was paid for in periods other than this period.
IncludeCurrentPeriodIf true, this will check to see if Bonus was paid during the current period.

Example

<PaidOnCondition Bonus="" Rule="" Tag="" IncludePastPeriods="" IncludeCurrentPeriod="" />


<PercentileCondition>

Associate in top Percent percent.

AttributeCondition
AssociateBaseType
Percent
FromTop
Volume
RoundingStrategy

Example

<PercentileCondition AssociateBaseType="" Percent="" FromTop="" Volume="" RoundingStrategy="" />


<PromotionCondition>

AttributeCondition

Example

<PromotionCondition />


<PVCondition>

Checks if Volume is greater than Min.

AttributeCondition
MinMinimum volume needed to meet condition.
MaxMaximum volume before condition is false.
VolumeVolume to check against.

Example

<Rule Description="Current Quick Start 200" Name="QS200">
  <And>
    
    <PVCondition Max="-1" Min="200" Volume="PS1M" />
    
    <EnrolledInCondition VolumeRange="OneMonthly" />
  </And>
  <Result>
    <SetStat Name="QS200" Description="Current Quick Start 200" />
  </Result>
</Rule>


<RankCondition>

AttributeCondition
Rank
ExactMatch
VolumeRange
TemplateName

Example

<Rule>
  <And>
    <MeetsRule Rule="QS200" />
    
    <RankCondition Rank="80" ExactMatch="True" />
    
    <NotHitRule Rule="SI" />
  </And>
</Rule>


<StatusCondition>

Checks to see if Associate is a particular Status.

AttributeCondition
StatusThe status to check for.

Example

<StatusCondition Status="" />