DeskLocked()
Description
Section titled âDescriptionâThe DeskLocked Lua function returns a boolean indicating if the station is locked.
Arguments
Section titled âArgumentsâThis function does not accept any arguments.
-
Boolean:
The boolean indicates if the station is desk locked or not.- True (or 1): The station is locked.
- False (or 0): The station is not locked.
Example
Section titled âExampleâThis example prints the boolean number indicating the âDeskLockedâ status to the Command Line History.
| Copy CodeLua |
| ``` |
| return function() |
-- The DeskLocked() return is printed.Printf("The desk is locked: " .. tostring(DeskLocked()))end