S&box Wiki

Sandbox.StringX.ToInt

Syntax

static int ToInt( string str, int Default = 0 )

Description

Convert to int, if not then return Default

Arguments

string str
int Default 0

Returns

int