Skip to content

Commit 1792410

Browse files
committed
lib/dtutils.lua - corrected test
1 parent 9e0374d commit 1792410

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/dtutils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ dtutils.libdoc.functions["check_max_api_version"] = {
9797

9898
function dtutils.check_max_api_version(max_api, script_name)
9999
local current_api = dt.configuration.api_version_string
100-
if max_api < current_api then
100+
if current_api > max_api then
101101
dt.print_error("This application is written for lua api version " .. max_api .. " or earlier.")
102102
dt.print_error("The current lua api version is " .. current_api)
103103
dt.print("ERROR: " .. script_name .. " failed to load. Lua API version " .. max_api .. " or earlier required.")

0 commit comments

Comments
 (0)