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

#1 2010-09-18 18:10:29

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

The <() = ()> block ain't case - sensitive!

This block won't report exactly if there are alike. Like if you put <(LOL) = (lol)> it will report TRUE. Wow! This ain't case sensitive! I think in 2.0 it should be case sensitive.


                         [blocks]<when green flag clicked>
<if>   <( lol  <=> LOL  )>                           
<say[ bug detected!
<wait( 3 )secs]
<stop script>
<end>
<say[ no bug.
[/blocks]
He will say bug detected!

Last edited by zorket (2010-09-18 18:15:09)


Marzipan11 must learn to not spoil

Offline

 

#2 2010-09-18 18:14:38

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: The <() = ()> block ain't case - sensitive!

I've known this for a while, that's why I created a case-sensitive equals boolean in BYOB for the block library.

And this is more of a suggestion, it should probably be in Suggestions.


Yawn.

Offline

 

#3 2010-09-18 18:15:44

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: The <() = ()> block ain't case - sensitive!

meowmeow55 wrote:

I've known this for a while, that's why I created a case-sensitive equals boolean in BYOB for the block library.

And this is more of a suggestion, it should probably be in Suggestions.

It isn't entirely a suggestion page.


Marzipan11 must learn to not spoil

Offline

 

#4 2010-09-18 18:17:05

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: The <() = ()> block ain't case - sensitive!

None of the string inputs in Scratch are case sensitive. It's not a bug, it just wasn't programmed in in the first place.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#5 2010-09-18 18:17:35

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: The <() = ()> block ain't case - sensitive!

ScratchReallyROCKS wrote:

None of the string inputs in Scratch are case sensitive. It's not a bug, it just wasn't programmed in in the first place.

You said in twice.


Marzipan11 must learn to not spoil

Offline

 

#6 2010-09-18 18:27:54

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: The <() = ()> block ain't case - sensitive!

zorket wrote:

I think in 2.0 it should be case sensitive.

If they changed the block so it was case-sensitive, older projects might not work the same...


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#7 2010-09-18 18:58:13

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: The <() = ()> block ain't case - sensitive!

I think it's better being non-case sensitive, although the option would be nice.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#8 2010-09-18 19:52:56

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: The <() = ()> block ain't case - sensitive!

zorket wrote:

ScratchReallyROCKS wrote:

None of the string inputs in Scratch are case sensitive. It's not a bug, it just wasn't programmed in in the first place.

You said in twice.

Yeah, I meant to do that.

Last edited by ScratchReallyROCKS (2010-09-18 19:53:42)


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#9 2010-09-19 08:37:16

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: The <() = ()> block ain't case - sensitive!

Jonathanpb wrote:

zorket wrote:

I think in 2.0 it should be case sensitive.

If they changed the block so it was case-sensitive, older projects might not work the same...

Maby ANOTHER block that is case sensitive.


Marzipan11 must learn to not spoil

Offline

 

#10 2010-09-19 08:56:45

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: The <() = ()> block ain't case - sensitive!

By the way, in Scratch, P = p but Π ≠ π.

Offline

 

#11 2010-09-19 12:03:09

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: The <() = ()> block ain't case - sensitive!

mathematics wrote:

By the way, in Scratch, P = p but Π ≠ π.

What?


Marzipan11 must learn to not spoil

Offline

 

#12 2010-09-20 06:06:02

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: The <() = ()> block ain't case - sensitive!

zorket wrote:

mathematics wrote:

By the way, in Scratch, P = p but Π ≠ π.

What?

You don't get it?

P = Latin capital letter p
p = Latin small letter p
Π = Greek capital letter pi
π = Greek small letter pi

Offline

 

#13 2010-09-20 07:36:15

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

Re: The <() = ()> block ain't case - sensitive!

mathematics wrote:

zorket wrote:

mathematics wrote:

By the way, in Scratch, P = p but Π ≠ π.

What?

You don't get it?

P = Latin capital letter p
p = Latin small letter p
Π = Greek capital letter pi
π = Greek small letter pi

But pi isn't alphanumeric. It's its own strange character.

Offline

 

#14 2010-09-20 07:47:51

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: The <() = ()> block ain't case - sensitive!

coolstuff wrote:

mathematics wrote:

zorket wrote:

What?

You don't get it?

P = Latin capital letter p
p = Latin small letter p
Π = Greek capital letter pi
π = Greek small letter pi

But pi isn't alphanumeric. It's its own strange character.

But А (Cyrillic capital letter a) ≠ а (Cyrillic small letter a) (in Scratch).
It seems that it's only not case-sensitive for Latin letters.

Last edited by mathematics (2010-09-20 07:48:32)

Offline

 

#15 2010-09-20 07:55:34

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

Re: The <() = ()> block ain't case - sensitive!

mathematics wrote:

coolstuff wrote:

mathematics wrote:


You don't get it?

P = Latin capital letter p
p = Latin small letter p
Π = Greek capital letter pi
π = Greek small letter pi

But pi isn't alphanumeric. It's its own strange character.

But А (Cyrillic capital letter a) ≠ а (Cyrillic small letter a) (in Scratch).
It seems that it's only not case-sensitive for Latin letters.

Interesting discovery! I'll keep this in mind... It could be useful in a project telling you what type of character/letter something is.  wink

Offline

 

#16 2011-08-08 13:33:49

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: The <() = ()> block ain't case - sensitive!

there is a workaround-add first argument to a list, and use the <list contains thing> block.

Offline

 

Board footer