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.
Return
Section titled “Return”- 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