1.0 - min - Vantage Customer Experience

Vantage Customer Experience User Guide

prodname
Vantage Customer Experience
vrm_release
1.0
category
User Guide
featnum
B035-3800-099K

Returns the minimum value from a list of values.

In the following example, the criteria expression returns true if the minimum price in the cart complex attribute category is greater than 12.

min(
    get("Account.cart"),
     "price"
) > 12

If there are no entries for the price attribute, the min function returns 0.

By default, the min function accesses the most current data. The Session modifier enables the min function to access the session data, which is all of the data in the active session. For example, the Session modifier accesses not only the current value for an attribute but all the previous values for that attribute in the session. Use the Session modifier to use a simple attribute with the min function.

You can use the min function with dates.