IfIsNot()

Namespace ›› System ›› Mfunc ›› Methods ››
Parent Previous Next

IfIsNot()

OutputVar := Mfunc.IfIsNot(ByRef var, type)

Mfunc.IfIsNot(ByRef var, type)

Checks whether a variable's contents are not numeric, uppercase, etc.

Parameters

var

The variable name.

type

supported types are integer,float,number,digit,xdigit,alpha,upper,lower,alnum,space, and time

Returns

Returns true if var is not type; Otherwise false.

Remarks

Also See:AutoHotkey if var is type method
Static Method.

Example

if (!Mfunc.IfIsNot(var,"float"))
{
	MsgBox, %var% is a not floating point number.
}

if (Mfunc.IfIsNot(var,"integer"))
{
	MsgBox, %var% is not an integer.
}

if (Mfunc.IfIsNot(var,"time"))
{
	 MsgBox, %var% is not a valid date-time.
}