ConVar/GetBool

From Garry's Mod
Jump to: navigation, search
 ConVar:GetBool( )

Description

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

Returns

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.
Personal tools
Navigation