From 510bc2b2a90fa28d0ee6f7ac6a2a991febe4a66d Mon Sep 17 00:00:00 2001 From: Layla Manley Date: Sun, 8 Oct 2023 04:19:52 -0400 Subject: [PATCH] iteration --- packages/dig.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/dig.lua b/packages/dig.lua index 14849c1..62597c9 100644 --- a/packages/dig.lua +++ b/packages/dig.lua @@ -5,4 +5,9 @@ if args[1] == nil then return end -io.write(lns.lookup(args[1]) .. "\n") \ No newline at end of file +result = lns.lookup(args[1]) +if result == nil then + io.write("Not found!\n") +else + io.write(result .. "\n") +end \ No newline at end of file