Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wvpv/e5a9f67878c135fbbd6f917bc52bab8c to your computer and use it in GitHub Desktop.
Save wvpv/e5a9f67878c135fbbd6f917bc52bab8c to your computer and use it in GitHub Desktop.
%%[
set @s = "Baby shark|Mommy shark|Daddy shark|Grandma shark|Grandpa shark|Let's go hunt|Run away|Safe at last|It's the end|"
for @v=1 to 9 do
set @f = substring(@s,1,add(indexOf(@s,"|"),-1))
set @s = replace(@s,concat(@f,"|"))
for @l=1 to 4 do
outputline(v(@f),iif(@l<4,", doo doo doo doo doo doo","!"))
next
next
]%%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment