Garry's Mod Wiki

ConVar:GetBool

  boolean ConVar:GetBool()

Description

Tries to convert the current string value of a ConVar to a boolean.

Returns

1 boolean
The boolean value of the console variable. If the variable is numeric and not 0, the result will be true. Otherwise the result will be false.