A feature I’d like to see in Hopscotch is:
Check if else blocks in parameters
Basically it gives a certain output depending on the condition.
Set text to ((if (1 = 1) then (yes) else (no));
The above block will output yes if 1 = 1 or no if 1 ≠ 1.
I’d use it for this type of project:
Everything
Here are some examples of Hopscotch code that could be improved if we had this:
Places where there’s a condition for the input, like ‘must be a number’
Here is an example design I’ve made:
…
Uh (budget block tiiime!)
(If (((self) clone index) = (0)) then (original object) else (clone))
I’ve seen something similar in another programming languages, it looks like this:
I’ve seen this in kotlin
Smth like:
Val x :int = if (7 = 3) {
"What"
} else if (7 == 7) {
"Yes"
}