How do I concat strings in ui flow
-
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?