Table of Contents

Method TryParseIntBool

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

TryParseIntBool(string, out bool)

Tries to parse an integer-based boolean (1/0) and convert to a managed boolean using NWScript semantics.

public static bool TryParseIntBool(this string intBoolString, out bool result)

Parameters

intBoolString string

The integer string to parse.

result bool

Outputs true for non-zero values, false for zero.

Returns

bool

True if parsing succeeded; otherwise false.