Skip to main content

Timeline for Line break using Ampscript

Current License: CC BY-SA 4.0

4 events
when toggle format what by license comment
May 20, 2021 at 11:08 comment added Johannes Schapdick To cover it with Lukas more estatic version of a solution this would be something like %%=IIF(@Q1 == "The quick brown fox jumps over the lazy dog" AND NOT EMPTY(@Q1),"CONCAT(@Q1,"<br/>","))=%% be aware that i completely negated Lukas conditions to be positive and not negative. Therefore i also need to put the output parameter into the second iif parameter and not the third.
May 20, 2021 at 10:58 comment added Johannes Schapdick For empty values you would combine the statements: IF @Q1 == "YES" AND NOT EMPTY(@Q1) THENfor whole sentenced (they must exactly match) you would have to change the string inside the " " signs. For example IF @Q1 == "The quick brown fox jumps over the lazy dog" AND NOT EMPTY(@Q1) THEN ...
May 20, 2021 at 10:06 comment added Harvey Linarez Perfect. Once last question: what if the word is not YES but a different word/sentence ? Example: IF Q1 is not empty - show the word
May 20, 2021 at 9:59 history answered Johannes Schapdick CC BY-SA 4.0