From 3e430ee2be3e5e63c01eb06a020b492dfa2d0f2b Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Wed, 3 Dec 2025 18:26:13 -0500 Subject: [PATCH] lib/dtutils/string - converted element from string to number for use in test --- lib/dtutils/string.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/dtutils/string.lua b/lib/dtutils/string.lua index 1ea3e33..122f6d2 100644 --- a/lib/dtutils/string.lua +++ b/lib/dtutils/string.lua @@ -680,7 +680,8 @@ local function build_rollname_substitution_list(image, variable_string) end local path = du.split(image.film.path, dt.configuration.running_os ~= "windows" and "/" or "\\") - if element > #path then + + if tonumber(element) > #path then substitutes["ROLL.NAME"] = "" log.msg(log.warn, "ROLL.NAME element requested was more than number of elements in film roll") else