Click or drag to resize
OnlineMarketingTransformationFunctionsSpentMoney Method
Returns true if the contact spent specified amount of money (counted by order total price in main currency) in last X days.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 8.2.23
Syntax
C#
public static bool SpentMoney(
	Object contact,
	double lowerBound,
	double upperBound,
	int lastXDays
)

Parameters

contact
Type: SystemObject
Contact the activities of which should be checked
lowerBound
Type: SystemDouble
Inclusive lower bound of the amount of money (in main currency) spent by contact
upperBound
Type: SystemDouble
Inclusive upper bound of the amount of money (in main currency) spent by contact
lastXDays
Type: SystemInt32
Constraint for last X days (if zero or negative value is given, no constraint is applied)

Return Value

Type: Boolean
See Also