Skip to content

NeedShowSave()

The NeedShowSave Lua function returns a boolean indicating if there are unsaved changes to the showfile.

This function does not accept any arguments.

  • Boolean:
    The boolean returns True if there are unsaved changes to the show file. False indicates that the show file has not changed since the last save. These indications do not include changes to the playback state of the show.

This example prints feedback indicating if the show file should be saved or not.

Copy CodeLua
```
return function ()
-- Check if the show should be saved.
if NeedShowSave() then
Printf("You should save your showfile.")
else
Printf("You do not need to save your showfile.")
end

end