Dynamic Pricing : Basic concepts : Example rule:
 
Example rule:
IF(DCI(,,ADULT), SETPRICE(575)
IF(COMPARE(SHAREMODSPREV(,,ADULT)+SHAREMODSPREV(,,SENIOR),>=2),
PREVENTUSE()))
IF(DCI(,,SENIOR), SETPRICE(475)
IF(COMPARE(SHAREMODSPREV(,,ADULT)+SHAREMODSPREV(,,SENIOR),>=2),
PREVENTUSE()))
IF(DCI(,,YOUTH), SETPRICE(375)
IF(COMPARE(SHAREMODS(,,ADULT)+SHAREMODS(,,SENIOR)+
SHAREMODSPREV(,,YOUTH),>=4),SETPRICE(25)))
IF(DCI(,,CHILD), SETPRICE(235)
IF(COMPARE(SHAREMODS(,,ADULT)+SHAREMODS(,,SENIOR)+SHAREMODS(,,YOUTH)+ SHAREMODSPREV(,,CHILD),>=4),SETPRICE(25)))
 
This rule can be assigned to all modifiers of the main “family” pass package item. In this case, the modifier nicknames are SENIOR, ADULT, YOUTH, and CHILD and all are configured as Create Pass item types. The Family Pass package only allows a total of two ADULT or SENIOR modifiers. If more than two of these modifiers are added, the PREVENTUSE() function is enabled. This rule places the price on the modifier rather than the main item was created as part of the ability to add modifiers. If four modifiers are added, the subsequent YOUTH/CHILD modifiers are discounted to $25.00. This Rule enabled starting with the 5th pass, prices the mods at $25 both in Sales and in E-Commerce modules.
 
Note: The use of SHAREMODS and SHAREMODSPREV in order to make sure the least expensive members are discounted first regardless of the order of the modifiers.