Discuss Scratch

MackerxMaker
Scratcher
2 posts

Not Equal to Operator Block

Just like there is an “equal to” operator block, there should be a “not equal to” block (≠). Currently the only way you can do this is by saying “x > y and x < z”. For example, “9 > 8 and 9 < 10”. This would make it easier to determine when something is not equal so something else.
StevenTheSquare
Scratcher
100+ posts

Not Equal to Operator Block

workaround
<not <>>
<[] = []>
<not <[] = []>>
MackerxMaker
Scratcher
2 posts

Not Equal to Operator Block

StevenTheSquare wrote:

workaround
<not <>>
<[] = []>
<not <[] = []>>
Didn't think of that, that works too
gdfsgdfsgdfg
Scratcher
1000+ posts

Not Equal to Operator Block

Last edited by gdfsgdfsgdfg (Nov. 8, 2023 23:53:14)

qwerty_wasd_gone
Scratcher
1000+ posts

Not Equal to Operator Block

<[] ≠ []::operators>
Toodchop
Scratcher
100+ posts

Not Equal to Operator Block

In many programming languages, it is called “!=.” The block could look like this if it was added:

<[] != [] :: operators>

Last edited by Toodchop (Oct. 16, 2025 08:31:16)

Powered by DjangoBB