hello, I have piece of written code that I need to transform into blocks,
I used ai (don't judge im a newbie) for my project and It gave me written code, i looked into the blocks but I couldn't find the right pieces. could anyone help me if I gave them the code and they can make it to an image whereas I can understand it?
when bookmark.Click do
set url to TextBox1.Text
set domain to get domain from url
set favicon to "https://icons.duckduckgo.com/ip3/" + domain + ".ico"
if Button5.Text = "" then
set Button5.Text to url
set Button5.Image to favicon
else if Button6.Text = "" then
set Button6.Text to url
set Button6.Image to favicon
else if Button7.Text = "" then
set Button7.Text to url
set Button7.Image to favicon
else if Button8.Text = "" then
set Button8.Text to url
set Button8.Image to favicon
else if Button9.Text = "" then
set Button9.Text to url
set Button9.Image to favicon
else
ShowAlert("All the buttons are occupied!")
end if
end when
Thank you.