Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    How to ignore whitespaces in fuze?

    Coding
    4
    14
    650
    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.
    • P
      petermeisenstein F @xevdev last edited by

      @xevdev thanks.

      pianofire 1 Reply Last reply Reply Quote 0
      • pianofire
        pianofire Fuze Team @petermeisenstein last edited by

        @petermeisenstein You should probably do the same for the tab character (ASCII 9)

        P 1 Reply Last reply Reply Quote 1
        • P
          petermeisenstein F @pianofire last edited by

          @pianofire i know that in python exist this little letter for example " \n" is new line and there is also a r who i think ignores whitespaces. But this doesnt exist in fuze right

          pianofire 1 Reply Last reply Reply Quote 0
          • pianofire
            pianofire Fuze Team @petermeisenstein last edited by

            @petermeisenstein \n does indeed work for a new line

            P 2 Replies Last reply Reply Quote 1
            • P
              petermeisenstein F @pianofire last edited by

              @pianofire Are there other of these special letters in fuze

              1 Reply Last reply Reply Quote 0
              • pianofire
                pianofire Fuze Team last edited by

                I don't think so

                1 Reply Last reply Reply Quote 0
                • xevdev
                  xevdev F last edited by

                  Well I didn't know that I've been using print(chr(10)) for a new line

                  1 Reply Last reply Reply Quote 1
                  • P
                    petermeisenstein F @pianofire last edited by

                    @pianofire Can I also do?

                    new_line="\n"
                    print("hello world")
                    print(new_line)
                    print("lol")
                    update()

                    pianofire 1 Reply Last reply Reply Quote 0
                    • pianofire
                      pianofire Fuze Team @petermeisenstein last edited by

                      @petermeisenstein I think so try it! But you can definitely do print("hello world\n")

                      P 1 Reply Last reply Reply Quote 0
                      • P
                        petermeisenstein F @pianofire last edited by

                        @pianofire Ok final question how can i print \n as a string
                        so to output \n

                        1 Reply Last reply Reply Quote 0
                        • Martin
                          Martin Fuze Team last edited by

                          print(chr(0x5c), "n") is one way

                          P 1 Reply Last reply Reply Quote 0
                          • P
                            petermeisenstein F @Martin last edited by

                            @Martin thanks

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