Garry's Mod Wiki

util.tobool

boolean util.tobool( any input )

Description

We advise against using this. It may be changed or removed in a future update. You should use tobool instead.

Converts string or a number to a bool, if possible. Alias of tobool.

Arguments

1 any input
A string or a number to convert.

Returns

1 boolean
False if the input is equal to the string or boolean "false", if the input is equal to the string or number "0", or if the input is nil. Returns true otherwise.

Page Links


Special Pages


Wikis

?

Render Time: 57ms

DB GetPage 4
Generate Html 6
SaveChanges (1) 32
Render Body 0
Render Sidebar 12