From 7a45b10fd2fa14326454228d3fe4721516dffd04 Mon Sep 17 00:00:00 2001 From: UndeadMaelys Date: Tue, 22 Mar 2022 16:42:14 +0100 Subject: [PATCH] search now tells u theres no result lol --- search_list.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/search_list.lua b/search_list.lua index f7bd52f..69bf157 100644 --- a/search_list.lua +++ b/search_list.lua @@ -13,6 +13,10 @@ return function(query) table.insert(results_table,word) end end - results_table = adjustTableSizes(results_table) - printOutputTable(results_table) + if #results_table ~= 0 then + results_table = adjustTableSizes(results_table) + printOutputTable(results_table) + else + print("no words found for <" .. query .. ">") + end end \ No newline at end of file