isNumeric

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Availability

This routine is available starting with SIL Engine™ 1.0.

Syntax

isNumeric(str)

Description

Returns "true" if the provided argument str is actually a number.

Parameters

Parameter name

Type

Required

Description

str

string

Yes

Specifies a character expression.

Return type

boolean (true/false)

Example

Example 1

wret = isNumeric("2345");
print(wret);

Print true

Example 2

wret = isNumeric("-2345.678");
print(wret);

Print true

Example 3

wret = isNumeric("2345.678abcd");
print(wret);

Print false

See also