Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

printgood

-- printgood

local _print = print
function print(...)
    _print(table.concat({...}, ", "))
end

function setup()
    print("Hello World!")
    print(100,200,300,"hello")
end
--->
Hello World!
100, 200, 300, hello

Comments

  • dave1707dave1707 Mod
    Posts: 8,671

    @RonJeffries Heres the way I’ve been doing print to get separation between values. It uses the standard print so nothing needs changing. I just put double quotes “” between each value or variable.

    function setup()
        print(100,"",200,"",300,"","hello")
    end
    
  • edited November 5 Posts: 762

    yes, i get tired of the typing.

  • dave1707dave1707 Mod
    Posts: 8,671

    @RonJeffries Normally I use print statements when I need to debug a program. So there isn’t that much typing involved.

  • Posts: 762

    me too, but until they fix the jamming bug, this little quickie will give me clean easy debug prints

Sign In or Register to comment.