This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-11-23 23:30:39

slartibartfast
Scratcher
Registered: 2008-11-23
Posts: 1

Making Code Blocks Into Variables

Does anyone know if it's possible to set a a variable to a block of code?

I'm trying to make a koch snowflake, for which I need a variable to act on itself

Thanks a ton.

- Slarti

Offline

 

#2 2008-11-28 22:52:52

oooo
Scratcher
Registered: 2007-08-09
Posts: 20

Re: Making Code Blocks Into Variables

well...  you can set variables to if statements - they return 1 or 0, Boolean Logic style.

Offline

 

Board footer