NeedShowSave()
Description
Section titled âDescriptionâThe NeedShowSave Lua function returns a boolean indicating if there are unsaved changes to the showfile.
Arguments
Section titled âArgumentsâ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.
Example
Section titled âExampleâ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.")endend