Scripting/Server/Functions/IsNum

True if the value is a number or a string that fully parses as one.

Syntax

IsNum(value)

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "isnum" )
	{
		IsNum( true );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Maths and strings

Categories: Server functions | Maths and strings