When is not matching, new idea

This block would be useful

Great idea - it would be very useful to have in Hopscotch.

You confuse me? I don’t understand

Hmm…

Isn’t that why check if else exists?

Or is it a rule rather than a block?

Unfortunately, this doesn’t exist yet.

Fortunately, you can use JSON editing and drop a conditional into a conditional.

If ( ("test" matches "t") == 0 ) {
  //Do something
}

The code above is the equivalent of “test” does not match “t”

3 Likes

Bumpity bump

2 Likes

Yoink
Do we need this

1 Like

Maybe:
Repeat forever{
Check if ((hi) matches (h)){
// nothing here
}else{
// some code here
}end if
}end repeat

Bruh that’s big brain JSON editing there

Oh, matches (0) i thought matches ( )

it basically means if (“that” == “t”) is false { code }

1 Like

Can’t you basically just do

 when ___ doesn’t equal ____

Uh = and matches are very different…

2 Likes

yep, matches can use RegEx

1 Like

If you’re not using regex, matches is basically ‘contains’

1 Like