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

#1 2010-06-30 15:24:49

MaxtheWeirdo
Scratcher
Registered: 2010-03-18
Posts: 500+

An Includes modifier!

The Include modifier would be boolean, like the array includes x block. It would have two areas for variables/ strings, and if the variable contains the thing in the second area, it reports true, if not, false.

What do you think?


My website. Hall Crawler My Awesome OS
It's just marketing, guys! Nothing sinister!

Offline

 

#2 2010-06-30 15:32:45

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: An Includes modifier!

Ah! Kind of like the "Contains" for lists. I support this!  big_smile


Hai.

Offline

 

#3 2010-06-30 15:44:23

MaxtheWeirdo
Scratcher
Registered: 2010-03-18
Posts: 500+

Re: An Includes modifier!

Oh, something I forgot: possibly if you put a list name in the first place, it would act as the "List contains X" block. Then they could remove that one.


My website. Hall Crawler My Awesome OS
It's just marketing, guys! Nothing sinister!

Offline

 

#4 2010-06-30 16:35:54

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: An Includes modifier!

That's a great idea! Right now, you just have to loop through every letter of the string - and sequential characters is insanely difficult to do.

Offline

 

#5 2010-06-30 17:11:36

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: An Includes modifier!

Great idea!  big_smile


http://i42.tinypic.com/2rot8c2.png

Offline

 

#6 2010-06-30 17:39:14

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: An Includes modifier!

I'd like to see this also.

Offline

 

#7 2010-07-01 09:04:56

MaxtheWeirdo
Scratcher
Registered: 2010-03-18
Posts: 500+

Re: An Includes modifier!

Thanks!


My website. Hall Crawler My Awesome OS
It's just marketing, guys! Nothing sinister!

Offline

 

#8 2010-07-01 09:21:04

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: An Includes modifier!

Brillant Idea!


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#9 2010-07-03 06:59:54

MaxtheWeirdo
Scratcher
Registered: 2010-03-18
Posts: 500+

Re: An Includes modifier!

Again, thanks. Anything else that could be added to this idea?


My website. Hall Crawler My Awesome OS
It's just marketing, guys! Nothing sinister!

Offline

 

#10 2010-07-03 13:07:25

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: An Includes modifier!

MaxtheWeirdo wrote:

Again, thanks. Anything else that could be added to this idea?

I don't think so... Its good as it is, would this be in the Operators tab?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#11 2010-07-03 13:12:25

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: An Includes modifier!

I'd love to see this, along with a

Code:

([string] from (start index) to (end index))

slice function.


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#12 2010-07-03 13:16:36

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: An Includes modifier!

fullmoon wrote:

I'd love to see this, along with a

Code:

([string] from (start index) to (end index))

slice function.

That would come in handy... I think panther has that...


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

Board footer