Return to Main Docs Page

SERVER

NewerServer.png boolean SERVER or _SERVER

Description:



Returns true when the code is executed from the server. It is used for an exception during code running or for checking.
The opposite of CLIENT-Side.

See this tutorial for more info.

Returns:


  • 1) boolean
  • Returns true if the code is running on the server.

Example:


if SERVER then
   print( "Loaded from SERVER." )
end