Discuss Scratch
- Discussion Forums
- » Bugs and Glitches
- » Character tabulation is equal to zero
- teal256
-
24 posts
Character tabulation is equal to zero
My browser / operating system: Linux, Firefox LibreWolf 99.0, No Flash version detected
The tab character (U+0009), “ ”, is equal to zero.
Screenshot:
https://u.cubeupload.com/teal/Screenshot2022050118.png (I'm still a “new scratcher”, and I can't post images, so paste the link into your browser)
The empty space on the left side of the block contains a tab character.
The tab character (U+0009), “ ”, is equal to zero.
Screenshot:
https://u.cubeupload.com/teal/Screenshot2022050118.png (I'm still a “new scratcher”, and I can't post images, so paste the link into your browser)
The empty space on the left side of the block contains a tab character.
- selfexplanatory
-
100+ posts
Character tabulation is equal to zero
It always equals it to 0, this is intended, and if it were removed, it would break projects, especially projects detecting if something is a string
- teal256
-
24 posts
Character tabulation is equal to zero
I don't think that this is intended, because the only other thing equal to 0 is 0. I think that it would fix projects, and not break them. For example, a project I'm working on removes whitespace from a string, but, as a result of this bug, it also removes zeroes from the string. It always equals it to 0, this is intended, and if it were removed, it would break projects, especially projects detecting if something is a string
- Kiska-7275
-
1000+ posts
Character tabulation is equal to zero
try using this
or this
Last edited by Kiska-7275 (May 2, 2022 15:23:18)
- teal256
-
24 posts
Character tabulation is equal to zero
That works, but I still think that the scratch team should fix this bug. try using thisor this
- CST1229
-
1000+ posts
Character tabulation is equal to zero
Apparently this is because greater than/less than checks are used in the compare function and “ ” is less than “0”.
Last edited by CST1229 (May 3, 2022 04:35:47)
- mlcreater
-
1000+ posts
Character tabulation is equal to zero
greater than/less than checks are used in the compare function and “ ” is less than “0”.That should mean: Apparently this is because
but this is false.
That should not mean:
but this is true.
Greater than/less than checks are used only when "// At least one argument can't be converted to a number[, so] Scratch compares strings…”
The behavior in question seems like numeric comparison, not string comparison—these are both true:
- Discussion Forums
- » Bugs and Glitches
-
» Character tabulation is equal to zero