Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Help
  3. How do I convert a string to a list

How do I convert a string to a list

Scheduled Pinned Locked Moved Help
helpquestion
6 Posts 3 Posters 1.8k Views 2 Watching
  • 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.
  • JaecadeJnightJ Offline
    JaecadeJnightJ Offline
    JaecadeJnight
    Mod Helper
    wrote on last edited by jeffreyrb03-gmail
    #1

    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_T CreatiCodeI 2 Replies Last reply
    1
    • JaecadeJnightJ JaecadeJnight

      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.

      Tyller_T Offline
      Tyller_T Offline
      Tyller_
      trusted helpers
      wrote on last edited by
      #2

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

      JaecadeJnightJ 1 Reply Last reply
      2
      • Tyller_T Tyller_

        @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

        JaecadeJnightJ Offline
        JaecadeJnightJ Offline
        JaecadeJnight
        Mod Helper
        wrote on last edited by
        #3

        @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
        1
        • JaecadeJnightJ JaecadeJnight

          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.

          CreatiCodeI Offline
          CreatiCodeI Offline
          CreatiCode
          wrote on last edited by info-creaticode
          #4

          @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
          1
          • JaecadeJnightJ Offline
            JaecadeJnightJ Offline
            JaecadeJnight
            Mod Helper
            wrote on last edited by jeffreyrb03-gmail
            #5

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

            CreatiCodeI 1 Reply Last reply
            0
            • JaecadeJnightJ JaecadeJnight

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

              CreatiCodeI Offline
              CreatiCodeI Offline
              CreatiCode
              wrote on last edited by
              #6

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

              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
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • CreatiCode