Return to Main Docs Page

CLIENT

NewerClient.png boolean CLIENT or _CLIENT

Description:



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

See this tutorial for more info.

Returns:


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

Example:


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