🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How do I concat strings in ui flow

    UIFlow
    4
    12
    25.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ajb2k3A
      ajb2k3 @alon24
      last edited by

      @alon24 Sorry what is concat strings?

      if you are unsure of english words try posting in your language.

      UIFlow, so easy an adult can learn it!
      If I don't know it, be patient!
      I've ether not learned it or am too drunk to remember it!
      Author of the WIP UIFlow Handbook!
      M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

      DINK74D 1 Reply Last reply Reply Quote 0
      • A
        alon24
        last edited by

        "hello" + "world" => "hello world"

        "0" + "1" => "01"

        1 Reply Last reply Reply Quote 0
        • A
          alon24
          last edited by

          https://en.wikipedia.org/wiki/Concatenation

          1 Reply Last reply Reply Quote 0
          • ajb2k3A
            ajb2k3
            last edited by

            surely if and else are showing the same thing?
            I'm feeling confused but its something like this.
            NOT complete!
            alt text

            UIFlow, so easy an adult can learn it!
            If I don't know it, be patient!
            I've ether not learned it or am too drunk to remember it!
            Author of the WIP UIFlow Handbook!
            M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

            1 Reply Last reply Reply Quote 0
            • A
              alon24
              last edited by

              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

              ajb2k3A 1 Reply Last reply Reply Quote 0
              • A
                alon24
                last edited by alon24

                Can u add https://github.com/google/blockly/wiki/Text#text-creation

                The create with and append to

                1 Reply Last reply Reply Quote 0
                • ajb2k3A
                  ajb2k3 @alon24
                  last edited by

                  @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.

                  UIFlow, so easy an adult can learn it!
                  If I don't know it, be patient!
                  I've ether not learned it or am too drunk to remember it!
                  Author of the WIP UIFlow Handbook!
                  M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

                  1 Reply Last reply Reply Quote 0
                  • L
                    LastCaress
                    last edited by

                    Doesn't this work?

                    alt text

                    In micropython it would be the same as python : stringA + stringB

                    1 Reply Last reply Reply Quote 0
                    • A
                      alon24
                      last edited by

                      So this worked, because I needed numbers

                      0_1556125589289_6003dc45-9bfc-4278-9a73-471038e6a730-image.png

                      ajb2k3A 1 Reply Last reply Reply Quote 0
                      • ajb2k3A
                        ajb2k3 @alon24
                        last edited by

                        @alon24 said in How do I concat strings in ui flow:

                        So this worked, because I needed numbers

                        0_1556125589289_6003dc45-9bfc-4278-9a73-471038e6a730-image.png

                        Would you mind if I added this to my book?

                        UIFlow, so easy an adult can learn it!
                        If I don't know it, be patient!
                        I've ether not learned it or am too drunk to remember it!
                        Author of the WIP UIFlow Handbook!
                        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

                        1 Reply Last reply Reply Quote 0
                        • DINK74D
                          DINK74 @ajb2k3
                          last edited by

                          @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.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post