Discuss Scratch
- Discussion Forums
- » Suggestions
- » [UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
- Pepperoni505
-
Scratcher
100+ posts
[UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
Technically already possible- it's just the the workaround is a humongous pain in the rear.
Therefore, full support.
- Prinseskat
-
Scratcher
1000+ posts
[UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
Support, though this topic is way old.
- matey1234
-
Scratcher
1000+ posts
[UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
Support!
- IronBit_Studios
-
Scratcher
1000+ posts
[UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
53 75 70 70 6f 72 74
If you can decode that, I congratulate you.
If you can decode that, I congratulate you.
- AonymousGuy
-
Scratcher
1000+ posts
[UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
53 75 70 70 6f 72 74“Support”
If you can decode that, I congratulate you.
I didn't decode that, but it is the same length and has the same character twice in a row.

- magical-meelia
-
Scratcher
8 posts
[UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
Support!
Workaround please?
Workaround please?
say [thank u!]
- magical-meelia
-
Scratcher
8 posts
[UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
Support!
Workaround please?
Workaround please?
say [thank u!]
- rollercoasterfan
-
Scratcher
1000+ posts
[UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
Support.
- 4655925
-
Scratcher
3 posts
[UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
when green flag clicked
- deck26
-
Scratcher
1000+ posts
[UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
Support
- DaSpudLord
-
Scratcher
1000+ posts
[UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
Please don't blockspam or necropost.when green flag clicked
- TheHockeyist
-
Scratcher
1000+ posts
[UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
Support. (Redirected here.)
- Charmind
-
Scratcher
500+ posts
[UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
semi support
i support
i support
([string] contains [string]::operators)but not for
([string] contains [digits/letters]::operators)because it's workaroundable
if <((string) * (1)) = (string)> then
// digit
else
//letter
end
- DadOfMrLog
-
Scratcher
1000+ posts
[UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
semi supportThe purpose isn't to decide if a variable contains a numerical value vs a string - as you say, that has an easy workaround (of several). Nor is it to determine what each character of a variable is (though it can be used like that).
i support([string] contains [string]::operators)but not for([string] contains [digits/letters]::operators)because it's workaroundableif <((string) * (1)) = (string)> then
// digit
else
//letter
end
Note that I suggested it says "contains a letter“, ”contains a digit“, etc. Both of those statements can be true of the same string - e.g. ”abc123“ does contain a letter and a digit.
One of the reasons I made it like this is the possibility of avoiding having to use a loop to go through a string character by character, using ”letter of" to test each one (though there will likely be many cases where you would do that - e.g. to get the case of each letter, which is currently a bit of a pain to do).
And having the ability to drop in a variable/expression on the right side means it contains that extra useful flexibility of acting as a substring check, which is also currently only possible in a character-by-character loop, as you're no doubt aware.
All such loops slow down Scratch execution, since it has to translate all the scripting block-by-block. By having such functionality built-in instead, it becomes possible to speed up certain things quite significantly…
- herohamp
-
Scratcher
1000+ posts
[UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
+999999 we need this! I know there are work around but they are not as easy and does not work like an easy bool!
- alexphan
-
Scratcher
1000+ posts
[UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
+999999 we need this! I know there are work around but they are not as easy and does not work like an easy bool!EDIT: Actually it wasn't a necropost lol

Last edited by alexphan (March 25, 2016 18:05:35)
- herohamp
-
Scratcher
1000+ posts
[UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
I I reposted this and paddle2see just said post on the old one soooo…
I I reposted this and paddle2see just said post on the old one soooo…
+999999 we need this! I know there are work around but they are not as easy and does not work like an easy bool!Please don't necropost.
I I reposted this and paddle2see just said post on the old one soooo…
- alexphan
-
Scratcher
1000+ posts
[UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
I I reposted this and paddle2see just said post on the old one soooo…
Oh, you made a duplicate topic, I see.
Well your post did :add to the discussion" anyway, so

- pvz_pro
-
Scratcher
500+ posts
[UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
scratch can't tell the difference between caps and lowercase
- Unlocked
-
Scratcher
100+ posts
[UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
scratch can't tell the difference between caps and lowercaseScratch can, but they've make uppercase and lowercase act as equal for simplicity. There are workarounds, but it would be much easier to make a single block to do that instead of performing huge workarounds.
- Discussion Forums
- » Suggestions
-
» [UPDATED] new boolean block: <[word] has [dropdown menu v] in it> (partly to allow case sensing)
















