An Evaluate block

A feature I’d like to see in Hopscotch is: evaluate block in the math section

So basically it outputs a solved version of the input
Maybe it can be called the solve block
Like if input is this text:
(5+5)*10
Then
Output = 100

I’d use it for this type of project:

A calculator lol

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

A lot of them, like calculators and stuff you know

Here is an example design I’ve made:

[Set text (evaluate((self) formula)))]

I’ve seen something similar in another programming languages, it looks like this:

Nope, sadly

Wait and if the input is not math, it should output 0 or the input

13 Likes

No first posts and stuff please

4 Likes

nice idea

3 Likes

I give this idea a round of applause
:clap::clap::clap:
Yeah this would be useful. (Weird enough, I was just thinking about something like this an hour ago)

3 Likes

this for some reason reminds me of js

nice idea

4 Likes

Yea js math
x = 10*383/6372x67(3794/38)

2 Likes

You can already do this if you have beta.

2 Likes

Uh no, it’s not there

1 Like

You use the text section by the variables

2 Likes

Yes, but there’s no evaluate block

2 Likes

That is true. I think an evaluate block would be a lot more convenient.

3 Likes

cough homework solver ++ pro version 2.0 will be a thing

2 Likes

Yea this is a great idea! Inputs and outputs like Python IDLE

2 Likes

Cool idea - I can see a use for this indeed!

3 Likes

Also we would like HS to follow PEMDAS

3 Likes

Yes, that would automatically work as js uses pemdas

1 Like

Because you would have to connect the correct blocks together in order for the code to multiply like you want.

1 Like

Yes, but if brackets aren’t used pemdas will automatically followed because hs uses js and js uses pemdas

JS: Im king hahaha
Python: Do you guys at least know my name?

1 Like

yeah

1 Like