Hello everyone. This image is part of a form created with a game lua code. I have a problem with the statement: this is my code
function checkDuration(key, expirationTime) local min if ((key.duration.minimum.enabled) and (key.duration.minimum.value \< expirationTime)) then min = true elseif (not key.duration.minimum.enabled) then min = true else min = false end if min then return true end end
Where
• enabled = returns true if the checkbox is selected
• value = returns the editbox’s content
I would make sure that if the checkbox is not selected or, if selected, and the editbox value is less than of expirationTime, the function checkDuration returns true, but I can not find the right combination with the statement. Can you help me?