I'd like to multiply the quantity value I have stored in my DE by 1.25.
The DE field is set to number. I've named the variable @Pens@Pens
.
I created another variable @PensCost@PensCost
to store the value of @Pens x 1.25@Pens x 1.25
.
I've tried SET @PensCost = Multiply(@Pens, 1.25):
SET @PensCost = Multiply(@Pens, 1.25)
but I get an error message "Multiply Parameter Name: Value1 Parameter Ordinal: 1 Parameter Type: Numeric Submitted." What am I doing wrong?
Multiply Parameter Name: Value1 Parameter Ordinal: 1 Parameter Type: Numeric Submitted." What am I doing wrong?
I've used this same format for other products and it's working fine. When I use %%=v(@Pens)=%%%%=v(@Pens)=%%
it returns the quantity number so I know my variable does have data.
More detailed code: %%[ VAR @Pens, @PensCost SET @Pens = AttributeValue("PAPERMATE PENS BLUE FINE POINT 15 ct") SET @PensCost = Multiply(@Pens, 1.25) ]%% %%=v(@PensCost)=%%
%%[
VAR @Pens, @PensCost
SET @Pens = AttributeValue("PAPERMATE PENS BLUE FINE POINT 15 ct")
SET @PensCost = Multiply(@Pens, 1.25)
]%%
%%=v(@PensCost)=%%