Skip to main content
edited tags
Link
Lukas Lunow
  • 22.2k
  • 4
  • 27
  • 59
Source Link

Line break using Ampscript

Hi All,

I would like to request assistance if this is possible using Ampscript?

Data Extension
Q1 = YES
Q2 = YES
Q3 = NULL
Q4 = YES

Email Content:
Dear Customer,
Here is the summary of your answer to your question.
%%=v(@Q1)=%%%%=v(@Q2)=%%%%=v(@Q3)=%%%%=v(@Q4)=%%

Preview
Dear Customer,
Here is the summary of your answer to your question.
YESYESNULLYES


What I want is, if the variable detects a YES on it, a line break(br) will appear and if NULL(Q3) Q4 will go upward.

Expected Outcome
Dear Customer,
Here is the summary of your answer to your question.
YES
YES
YES