Function
A function in Lua is a reusable block of code that performs a specific task when you call it. It’s useful because it keeps your Grid Editor scripts cleaner, avoids repeating code, and makes actions easier to organize and reuse.
A function in Lua is a reusable block of code that performs a specific task when you call it. It’s useful because it keeps your Grid Editor scripts cleaner, avoids repeating code, and makes actions easier to organize and reuse.
The If Block serves as the most basic logic operator for Grid Editor. When using such a Block you're able to create additional conditions for running actions in case of an Event trigger.