Last edit: @bryce.tucker.0598 in #[IM @bryce.tucker.0598] 2 months ago - Slack Archive

{lua}
function print_line(num, sym)
    if argv[num] ~= nil then
        print(sym)
        print("  |  ")
        i = i + 1
        while argv[i] ~= nil and argv[i] ~= "~" do
          print(argv[i])
          print(" ")
          i = i + 1
        end
        print("\n")
    end
end

i = 1
while argv[i] ~= nil and argv[i] ~= "~" do
  print(argv[i])
  print(" ")
  i = i + 1
end
print("\n")

while argv[i] ~= nil do
  i = i + 1
  print_line (i, argv[i])
end

History

Revision: 4677 by @bryce.tucker.0598 in #[IM @bryce.tucker.0598] 2 months agoSlack Archive

{lua}
function print_line(num, sym)
    if argv[num] ~= nil then
        print(sym)
        print("  |  ")
        i = i + 1
        while argv[i] ~= nil and argv[i] ~= "~" do
          print(argv[i])
          print(" ")
          i = i + 1
        end
        print("\n")
    end
end

i = 1
while argv[i] ~= nil and argv[i] ~= "~" do
  print(argv[i])
  print(" ")
  i = i + 1
end
print("\n")

while argv[i] ~= nil do
  i = i + 1
  print_line (i, argv[i])
end

Revision: 4676 by @bryce.tucker.0598 in #[IM @bryce.tucker.0598] 2 months agoSlack Archive

{lua}
function print_line(num, sym)
    if argv[num] ~= nil then
        print(sym)
        print("  |  ")
        i = i + 2
        while argv[i] ~= nil and argv[i] ~= "~" do
          print(argv[i])
          print(" ")
          i = i + 1
        end
        print("\n")
    end
end

i = 1
while argv[i] ~= nil and argv[i] ~= "~" do
  print(argv[i])
  print(" ")
  i = i + 1
end
print("\n")

while argv[i] ~= nil do
  print_line (i, argv[i])
end

Revision: 4675 by @bryce.tucker.0598 in #[IM @bryce.tucker.0598] 2 months agoSlack Archive

{lua}
function print_line(num, sym)
    if argv[num] ~= nil then
        print(sym)
        print("  |  ")
        i = i + 2
        while argv[i] ~= nil and argv[i] ~= "~" do
          print(argv[i])
          print(" ")
          i = i + 1
        end
        print("\n")
    end
end

i = 1
while argv[i] ~= nil and argv[i] ~= "~" do
  print(argv[i])
  print(" ")
  i = i + 1
end
print("\n")

while argv[i] ~= nil do
  print_line (i, argv[i])
done