Okay, so if you’ve coded using JavaScript before, you’ve probably heard of template literals or strings, where basically you can input values into a string to form a sentence. An example in JavaScript would be something like this.
let apples = 5;
let oranges = 4;
console.log(`We have ${apples} apple(s) and ${oranges} orange(s)`);
So in the console, it would say, “We have 5 apple(s) and 4 orange(s)”
The ${} is where you can input variables and the `` let’s the system know that it’s a template literal or template string.
The reason I’m mentioning this is because in Gimkit, for example notifications. You concatenate using something like this.
set property: Apples;
set value: 4;
send notification;
title: Sentence
content: create text with:
item 1. set text: "We have",
item 2. get property Apples,
item 3. apple(s)
Then we would get “We have 4 apples.”
And this was pretty interesting to see that the dynamic literals or strings was used like this, it never occurred to me because of the use of blocks and devices kind of scrambled it up. But it’s actually used! [1]
Yeah that looks about right. @Toothless , I think you can also use the “math” feature in python that maybe you can do this, 5 + 4 apples equals: 9! (this reminds me of preschool math videos)
Slim, can you do something like that?
Oh yes, I’ve heard of that way, some one told me it gets less and less useful the more variables you have to input.
(I’ve done that in JavaScript before ) [1]
Assuming that multiplying the two variable would equal c, which is equal to a + b, making this statement false, since two different operations somehow equal the same thing.