Discuss Scratch

medians
Scratcher
1000+ posts

case sensitive C block (for uppercase, lowercase aware blocks in Scratch)

I was thinking of sth like this:
set case-sensitivity to [sensitive v] ::sensing

<case sensitive? ::sensing>
That_Little_Rocket
Scratcher
9 posts

case sensitive C block (for uppercase, lowercase aware blocks in Scratch)

<[H] = [h]>
true

Why?!?!?!?!?!

Last edited by That_Little_Rocket (Dec. 5, 2023 19:39:23)

That_Little_Rocket
Scratcher
9 posts

case sensitive C block (for uppercase, lowercase aware blocks in Scratch)

medians wrote:

I was thinking of sth like this:
set case-sensitivity to [sensitive v] ::sensing

<case sensitive? ::sensing>

I would want to do that
EDawg2011
Scratcher
1000+ posts

case sensitive C block (for uppercase, lowercase aware blocks in Scratch)

I would want this to be an Operators block because it would solve the problem, and be easier for children, which is Scratch's main target audience, to understand it.

<case-sensitive <> :: operators

Example Program:

when green flag clicked
ask [Put in your input.] and wait
if <case-sensitive <(answer) = [A]> :: operators> then
say [You put in an uppercase A as your input.]
end

Reposted this because I posted this at the wrong forum.
Crispydogs101
Scratcher
1000+ posts

case sensitive C block (for uppercase, lowercase aware blocks in Scratch)

So basically a detector for if there is a letter, for example, H, it would be like.
Hello, contains, H = true.
hello, contains H = false.

Am I getting it right?
EDawg2011
Scratcher
1000+ posts

case sensitive C block (for uppercase, lowercase aware blocks in Scratch)

Crispydogs101 wrote:

So basically a detector for if there is a letter, for example, H, it would be like.
Hello, contains, H = true.
hello, contains H = false.

Am I getting it right?
I think you got it right.
- buffer - like @Crispydogs101's legs -

Last edited by EDawg2011 (Dec. 7, 2023 02:51:47)

unmissable
Scratcher
1000+ posts

case sensitive C block (for uppercase, lowercase aware blocks in Scratch)

Support! This would be useful for me although I'm not saying why (it's supposed to be a surprise)
cookieclickerer33
Scratcher
1000+ posts

case sensitive C block (for uppercase, lowercase aware blocks in Scratch)

This isn’t possible
EDawg2011
Scratcher
1000+ posts

case sensitive C block (for uppercase, lowercase aware blocks in Scratch)

cookieclickerer33 wrote:

This isn’t possible
Why not?
ajskateboarder
Scratcher
1000+ posts

case sensitive C block (for uppercase, lowercase aware blocks in Scratch)

cookieclickerer33 wrote:

This isn’t possible
No?

Support, this is just amazing
Sean107366
Scratcher
24 posts

case sensitive C block (for uppercase, lowercase aware blocks in Scratch)

I was looking for this thing too
DifferentDance8
Scratcher
1000+ posts

case sensitive C block (for uppercase, lowercase aware blocks in Scratch)

Maybe instead of having it be a C block (which raises similar problems to the now-removed all at once block), have it be an option in sensing probably?

Something like medians' mockup might work.
cookieclickerer33
Scratcher
1000+ posts

case sensitive C block (for uppercase, lowercase aware blocks in Scratch)

ajskateboarder wrote:

cookieclickerer33 wrote:

This isn’t possible
No?

Support, this is just amazing
You can’t have a c block that enables case sensitivity for what’s inside it. You physically cannot do that in blockly
mumu245
Scratcher
1000+ posts

case sensitive C block (for uppercase, lowercase aware blocks in Scratch)

This would be confusing and hard to implement, because blocks cannot access this kind of context. Better solution would be this:
<[] is exactly equal to [] ::operators>
Or this:
make blocks [case-sensitive v] ::operators
make blocks [case-insensitive v] ::operators
set decimal precision to (15) digits ::operators

Powered by DjangoBB