function ascii_nerd( name ) local s = "" s = s .. [[ \ | | / | o o | \ O / | | ]] local l = string.len(name) for i=1,l+4 do s = s .. "+" end s = s .. "\n| " .. name .. " |\n" for i=1,l+4 do s = s .. "+" end return s end for k,v in ipairs(arg) do if v == "nerd" then print( ascii_nerd( arg[k+1] ) ) end end