Skip to content

Instantly share code, notes, and snippets.

@wvpv
Created October 26, 2020 22:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
%[
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