You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
operating_systems - table - a table of operating system names such as {"windows","linux","macos","unix"}
DESCRIPTION
check_os checks a supplied table of operating systems against the operating system the
script is running on and returns true if the OS is in the list, otherwise false
RETURN VALUE
result - boolean - true if the operating system is supported, false if not.
EXAMPLE
localdu=require"lib/dtutils"ifdu.check_os({"windows"}) then-- run the scriptelsedt.print("Script <script name> only runs on windows")
returnend