S&box Wiki

Sandbox.StringX.ToBool

Syntax

static bool ToBool( string str )

Description

Try to convert to bool. Inputs can be true, false, yes, no, 0, 1, null (caps insensitive)

Arguments

string str

Returns

bool