PattyBlount

6 months agoCommunity Member

# Storyline360 variables, calculating values with maximums

Hello,

I'm working on a project that must calculate a Shopping Cart total for 2 different products, A and B. Customers receive a volume discount per unit and that discount varies, depending on quantity. They may buy no more than 5 products total and may mix/match (i.e., 4 of A with 1 of B, etc.)

I'm stumped how to set up the variables to calculate the Cart Total.

Here are the volume discounts:

Product | Quantity | Cost |

A | 1 | 45 |

2 | 30 each | |

3 | 30 each | |

4 | 30 each | |

5 | 25 each | |

B | 1 | 55 |

2 | 40 each | |

3 | 40 each | |

4 | 40 each | |

5 | 35 each |

I know I need a variable for Cart Total, Quantity A, and Quantity B.

After that, I'm not sure how to include the conditions or the 5 product maximum.

I have no project file to share yet. Can anyone help me figure out how to express the variable calculations?