How do you insert a loop with scratchblocks?

like in the if, repeat, for blocks

like this ?
image

Like that, but in scratchblocks

<p>
[scratchblocks]
forever
if <(thing) = (llama)> then
moo::events
else
quack::sensing
end
end
custom c-block {
ug::sound
} is very cool {
say [hello]
} and epic::#FA14CB
[/scratchblocks]</p>

[scratchblocks] forever if <(thing) = (llama)> then moo::events else quack::sensing end end custom c-block { ug::sound } is very cool { say [hello] } and epic::#FA14CB [/scratchblocks]

You can find more info about the block plugin at https://en.scratch-wiki.info/wiki/Block_Plugin

[scratchblocks]
Forever
If then
Moo
else
quack
End
End
Custom c-block {

} it is very cool {

} and epic
[/scratchblocks]

[scratchblocks]
thing
[/scratchblocks]

Interesting, it must have just been something about my original post that stopped it from parsing the scratchblocks. I've sorted the formatting out now.

or

[scratchblocks] forever if <(thing) = (llama)> then moo::events else quack::sensing end end custom c-block { ug::sound } is very cool { say [hello] } and epic::#FA14CB [/scratchblocks]

is this what you meant?

Yeah, thanks

you need to get rid of extra linebreaks.
for non-existent c-shape blocks, use { to open a c-shape and } to close.
to get the Screen Shot 2021-02-14 at 6.05.47 PM image, add :: loop.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.