Suggestion: Wait Until and Variable Strings

how? :man_facepalming:

It literally observes changes in values

3 Likes
2 Likes

Interesting :clap:.
Really nice to have it at Hopscotch.

2 Likes

Increase variable on a string could just be the same as setting it to existing + new

1 Like

Currently Hopscotch doesn’t have a “wait until” block, but a way to do this without a preset block is by using a custom block (let’s call it “waitUntil”) with the following code:

If(testStatementVar !== wantedState){
waitUntil()
}

//Written in Javascript

But hopefully THT will add a “wait until” block soon.

1 Like

I know you can do this, but it would be a lot easier and faster with a wait until block.

That is True.

There is actually a way to do string variables. Just type some text in any app, copy it and paste it into the variable. Here’s an example:

image
Hope this helped :slight_smile: .

3 Likes

It gets stored as zero though; any string equals another.

Try “if ‘abc’ = ‘def’ then set color to red” and it will be red.

4 Likes

Ok, thanks!

2 Likes

It could look like this maybe:

2 Likes

Indeed. But remember, it’s take lots of design first

3 Likes

What just happened?

1 Like


Trying…

2 Likes

bump