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

10 Likes

This would be super useful!

2 Likes

One word: Genius.

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

3 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 >=

4 Likes

nice idea.

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

1 Like

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

1 Like