Table of Contents

Method ParseIntBool

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

ParseIntBool(string)

Parses the specified string as an integer based boolean (1 = true, 0 = false).

public static bool ParseIntBool(this string intBoolString)

Parameters

intBoolString string

The integer string to parse.

Returns

bool

ParseIntBool(string, bool)

Parses the specified string as an integer based boolean (1 = true, 0 = false).

public static bool ParseIntBool(this string intBoolString, bool defaultValue)

Parameters

intBoolString string

The integer string to parse.

defaultValue bool

If parsing fails, the value to return instead.

Returns

bool