VBS tutorial: Functions – IsNumeric functions

Time:2021-10-16

IsNumeric function

Returns a Boolean value indicating whether the value of the expression is a number.

IsNumeric(expression)

expressionParameters can be any expression.

explain

If the wholeexpressionIdentified as a number,IsNumericFunction returnTrue; Otherwise, the function returnsFalse。 IfexpressionIs a date expression,IsNumericFunction returnFalse

The following example usesIsNumericThe function determines whether a variable can be used as a value:

Dim myvar, mycheckmyvar = 53 'assignment. Mycheck = IsNumeric (myvar) 'returns true. Myvar = "459.95" 'assignment. Mycheck = IsNumeric (myvar) 'returns true. Myvar = "45 help" 'assignment. Mycheck = IsNumeric (myvar) 'returns false.

Recommended Today

Es DSL search – Multi_ Match, boost, and Boolean queries

1 Introduction It mainly introduces the basic API operation of index request. The request is made using postman. The prefix address of interface request is unified as elasticsearch deployment IP address + port number (for example: http://192.168.51.4:9200 。 Unified request address: POST /search_demo/_doc/_search 2 multi_match multi_matchMeet the requirements of using match to query in multiple […]