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

#1 2011-06-09 18:49:25

mr_fish_fish
Scratcher
Registered: 2009-11-12
Posts: 52

Homemade Blocks Examples

Post custom blocks here along with their code and blockspec.

This is one I have:

Blockspec:

('%n ≠ %n' #b #notequal:to:)

NOTE: The ≠ symbol might not always be available. "not =" also works.

Code:

notequal: t1 to: t2
t1 = t2 ifTrue: [^ false].
^ true

This block will report the truth value of two values are not equal.

Sorry, I do not have a picture of what the block would look like.

Last edited by mr_fish_fish (2011-06-09 18:55:24)


/\/\ ® _ |= 1 § |-| _ |= 1 § |-|

Offline

 

#2 2011-06-09 20:12:55

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Homemade Blocks Examples

Hey mr_fish_fish...interesting topic!  But it looks like we already have a topic for this over here.  We like to use the older topic where possible to keep the conversation going, so perhaps you could put your post on that topic and we'll close this one up.  Or, just use the Report link to ask a moderator to merge it onto the existing topic.  Thanks  smile


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer