
Is there a function that can do this? Can't find any documentation on it.
I've tried this already.
%%=IIf(@Value1=@Value2),(%%=v(@Value2=%%)),(%%=v(@Value1)=%% %%=v(@Value2)=%%)=%%
1 answer
You should be able to do an OR check: %%[ IF @Value1 == @Value2 OR @ VALUE1 > @VALUE2 THEN ]%%
%%=v(@Value1)=%%
%%[ELSE]%%
%%=v(@Value2)=%%
%%[ENDIF]%%
However, if your first and second value are equal, it doesn't really matter which value you output because they'll both be the same.