Navigation

    CreatiCode Scratch Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    How do I convert a string to a list

    Help
    help question
    3
    6
    421
    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.
    • jeffreyrb03-gmail
      JaecadeJnight Mod Helper last edited by jeffreyrb03-gmail

      I have a string like “burger\nfries\ntacos” (\n is a line break). How can I convert this or add this to a list? The XO assistant doesn’t work at all for me, so I can’t ask it.

      #LLJW
      <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

      Tyller_ info-creaticode 2 Replies Last reply Reply Quote 1
      • Tyller_
        Tyller_ Best Forum Helpers @jeffreyrb03-gmail last edited by

        @jeffreyrb03-gmail there’s a set list to split of text with splitter block, it’s right above the reporter blocks in the list section

        <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
        </div>

        jeffreyrb03-gmail 1 Reply Last reply Reply Quote 2
        • jeffreyrb03-gmail
          JaecadeJnight Mod Helper @Tyller_ last edited by

          @tyller_ oh I see it thanks bro

          #LLJW
          <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

          1 Reply Last reply Reply Quote 1
          • info-creaticode
            CreatiCode @jeffreyrb03-gmail last edited by info-creaticode

            @jeffreyrb03-gmail said in How do I convert a string to a list:

            I have a string like “burger\nfries\ntacos” (\n is a line break). How can I convert this or add this to a list? The XO assistant doesn’t work at all for me, so I can’t ask it.

            Can you show us what’s the issue with XO? It should work for everyone, and we will fix any issues you may have.

            BTW, here is what you would get from XO, but you might need to use “\n” instead of “\n” as the splitter in your code.

            05f02c70-14c6-4b79-8a8f-0fb2c9a6be43-image.png

            1 Reply Last reply Reply Quote 1
            • jeffreyrb03-gmail
              JaecadeJnight Mod Helper last edited by jeffreyrb03-gmail

              @info-creaticode I just get loading forever
              1d45f968-f3ea-4e72-b50a-20a08cf2e97e-image.png
              whatever website it’s trying to fetch or send a request to might just be blocked by my school, so when I have a chance I’ll test it on my Windows laptop. It might also be because it takes up a lot of memory because school Chromebooks suck and just crash on you.

              #LLJW
              <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

              info-creaticode 1 Reply Last reply Reply Quote 0
              • info-creaticode
                CreatiCode @jeffreyrb03-gmail last edited by

                @jeffreyrb03-gmail

                Thanks for the explanation. XO doesn’t really take much computation or memory resource, so likely this is because the XO server is blocked by your school.

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