Not conditional

A feature I’d like to see in Hopscotch is:

A conditional block which gives the opposite of the block inside of it.

I’d use it for this type of project:

Projects where I want to check if something does not match something

Here are some examples of Hopscotch code that could be improved if we had this:

Checking if something doesn’t match something, quicker to make code to point towards something

19 Likes

This would be super useful!

2 Likes

One word: Genius.

But it is Petrichor we’re talking about, so no surprise there.

5 Likes

I was thinking of that an hour ago lol

then I realized you could do the opposite [eg instead of when x < 500 then x > 500]

but idk if that’d work, I’d like to see this

1 Like

Great idea!

1 Like

Don’t forget the condition of =

Not > is <=
Not < is >=

6 Likes

nice idea.

I want this! After I started using not conditionals in Python, I have wanted this in Hopscotch!

2 Likes

As per usual petrichor is openly pitching all his hs ideas on the forum where all the other kids coding languages spy… @Scratch, @Tynker. I know u secretly are reading this

2 Likes

Nah, Scratch really isn’t a competitor.

1 Like

Does hs copy scratch?

2 Likes

I mean, I think it’s based off it to some extent, but hopscotch is on a completely different platform, so

1 Like

Hopscotch definitely copies scratch (jk)

1 Like

This would be very useful right now

9 Likes

Fortunately you can glitch a conditional into a number slot and check if it’s equal to zero, but an actual not block would be good

6 Likes

Yeah. I was trying to do something like that that earlier but I’m not not sure how.

6 Likes

This would be useful.

2 Likes

I will not not bump this; it would be very not useless.

3 Likes

Does the implementation of the ‘not’ conditional, in the recent update, satisfy the need you wanted here? If so, I can clive the topic.

3 Likes

This topic was automatically closed after 2 days. New replies are no longer allowed.