Skip to content

Instantly share code, notes, and snippets.

@wvpv
Created October 26, 2020 22:07
Show Gist options
  • Save wvpv/ed3e49316d01f84f818b1845e1ce6d1c to your computer and use it in GitHub Desktop.
Save wvpv/ed3e49316d01f84f818b1845e1ce6d1c 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 @i=1 to 112 do
set @c = substring(@s,@i,1)
if @c == "|" then
for @l=1 to 4 do
outputline(v(@v),iif(@l<4,", doo doo doo doo doo doo","!"))
next
set @v = ""
else
set @v = concat(@v,@c)
endif
next
]%%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment