Rocket® Enterprise Developer (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.
&NUMERIC
Determines whether a variable is represented internally in numeric form and returns
1 if numeric or 0 if non-numeric.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and
applies only to Windows platforms.
Syntax:
&NUMERIC( &variablename)
Aliases:
&numeric( &variablename) &Numeric( &variablename)
Example:
Set &II to true and test for its numeric value.
% &II = 1
% IF &NUMERIC( &II)
/* YOU WILL GET THIS TEXT
.
.
.
% END
Comments:
Note that &NUMERIC ("123") returns 0 (false), because the argument is a string. To test whether a string contains a numerics, use &IS-NUMERIC or &IS-DIGITS.