Simple lightweight variable change detector
Posted: Wed Feb 28, 2024 5:09 pm
I've made a simple, lightweight, variable change detector. Using tables to check if a variable is different from its most recently saved value, should work with true & false, numbers, strings, etc. If there are any errors, let me know.
(Note the image is a separate version which uses print to show the result; this is meant to be used as a function you can either put in a lua file or use in require, and as such returns a true or false on change detection)
(Note the image is a separate version which uses print to show the result; this is meant to be used as a function you can either put in a lua file or use in require, and as such returns a true or false on change detection)