Revision Difference
Global.BRANCH#564598
<function name="BRANCH" parent="Global" type="libraryfield">
<description>
A variable containing a string indicating which (Beta) Branch of the game you are using.
While this variable is always available in the <page text="Client">States#client</page> & <page text="Menu">States#menu</page>
realms, it is only defined in the <page text="Server">States#server</page> realm on local servers.
For more information on beta branches, see <page text="this page">Dev_Branch</page>
<bug issue="6085">Will return `prerelease` instead of `unknown` on dedicated servers.</bug>⤶
</description>
<realm>Shared and Menu</realm>
<rets>
<ret name="" type="string">The current branch.</ret>
</rets>
</function>
<example>
<code>
if BRANCH == "dev" then
print("You are using the development branch!")
end
</code>
</example>
The possible outputs are `unknown` (None), `dev`, `prerelease` and `x86-64`