Garry's Mod Wiki

BRANCH

  string BRANCH

Description

A variable containing a string indicating which (Beta) Branch of the game you are using.

This variable is only setup in Client and Menu Realms There is no steam client context on a dedicated server.

For more information on beta branches, see this page

Returns

1 string
The current branch.

Example

if BRANCH == "dev" then print("You are using the development branch!") end

The possible outputs are unknown (None), dev, prerelease and x86-64