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

#1 2009-10-22 21:46:34

onethousand
Scratcher
Registered: 2009-05-03
Posts: 96

Using variables as Strings

I just realized that the variables created aren't just limited to doubles and integers, they can be Strings (chains of characters (letters)) as well.
I just wanted to point this out. Maybe you've already known this, maybe not. But I think it'd be really useful in conjunction with the 'ask' block


Ready? Defend!
http://scratch.mit.edu/projects/onethousand/741108

Offline

 

#2 2009-10-22 22:00:40

greenflash
Scratcher
Registered: 2009-05-27
Posts: 1000+

Re: Using variables as Strings

Yeah, I guess (answer) is like a variable that stores strings automaically. using strings in variables is helpful though, especially in RPG-type projects, you can have all your info, like your name and such.


http://i48.tinypic.com/2wrkirk.pnghttp://i46.tinypic.com/6r5zk7.pnghttp://i45.tinypic.com/2vtxr1t.png

Offline

 

#3 2009-10-22 22:12:53

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Using variables as Strings

Actually, for some projects I haven't uploaded, I use this quite often, but I believe most of us know that variables can be used as strings.  smile

Offline

 

Board footer