natiny.window.get_alive

Lua
natiny.window.get_alive(win) -> boolean

Checks whether a window is still open.

Parameters

Name Type Description
win number Window handle from natiny.window.create

Returns

Type Description
boolean true if the window is open, false otherwise

Example

Lua
local open = natiny.window.get_alive(win)