Method TryParseIntBool
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
intBoolStringstringThe integer string to parse.
resultboolOutputs true for non-zero values, false for zero.
Returns
- bool
True if parsing succeeded; otherwise false.