Local variables + Custom blocks glitch

Use this template to make awesome bug reports:

Your username: Cutelittlepuppydog (with a :dog2: on the app)

What kind of device are you using?: (Also include iOS version, and Hopscotch version) iOS 15.5, iPad pro, HS 3.50.4

1 sentence description of the problem (I was doing _________, and then __________ happened): I was putting my code into a custom block, and then t stopped working even though no code had changed.

Steps that the Hopscotch team can take to reproduce my problem every time:

  1. make a custom rule including a parameter
  2. add a rule
  3. add a ‘check if else’ block including the local variable, ie. check if else (variable) ‘size’ > ‘100’
  4. in the ‘else’ section, add a block, ie. ‘destroy’
  5. click play
  6. add a custom block
  7. put something in the block
  8. take the thing out and delete it
  9. put the check if else in the custom block
  10. press play

I expected this to happen: The code would still work

But instead this happened: The code did not work

Here’s a sweet screenshot: video:

did i do this video right?

also i saw this topic:

but it’s slightly different, ofc if this is classifies as the same bug leaders can close this :)


Curious, if you exit the project after, does the code get lost?

This might be a similar issue (as there have been issues with removing stuff from containers then adding them back, as well as reordering), but I don’t know for sure