-
How do I concat strings?
I want to have a timer, and a label on screen 00 01 02 ....
I want to create the string from seconds, so that if it is less than 10 0+secondsso in a function:
varaible tmp;
if (sec<10) variable ="0" + string of secs ====> concat string
else variable = string of secsHow in ui flow
-
@alon24 Sorry what is concat strings?
if you are unsure of english words try posting in your language.
-
"hello" + "world" => "hello world"
"0" + "1" => "01"
-
-
surely if and else are showing the same thing?
I'm feeling confused but its something like this.
NOT complete!

-
I do not think you understand, I want to create a new string to show.
Say I have "hello" and "world" I want to. Create a new string with "hello world" in it.In js:
Let a= "hello" + "world"Now a== "hello world"
Hope this is now more understandable, it should be in the text section, something like join action for text
-
Can u add https://github.com/google/blockly/wiki/Text#text-creation
The create with and append to
-
@alon24 said in How do I concat strings in ui flow:
I do not think you understand, I want to create a new string to show.
Say I have "hello" and "world" I want to. Create a new string with "hello world" in it.In js:
Let a= "hello" + "world"Now a== "hello world"
Hope this is now more understandable, it should be in the text section, something like join action for text
You are correct, I didn't understand.
Hmn, nope I can't find away to do it in UIFlow however there should be away in micropython which is the underlying programming language.Sorry, I can't help you anymore here.
-
Doesn't this work?

In micropython it would be the same as python : stringA + stringB
-
So this worked, because I needed numbers

-
@alon24 said in How do I concat strings in ui flow:
So this worked, because I needed numbers

Would you mind if I added this to my book?
-
@ajb2k3 Actually, “concat” is a widely recognized and valid term in programming that refers to combining two or more strings. There’s no need to be condescending to a fellow programmer by telling them to “use his language.” He's used English in understandable manner.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login