Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > SDL script for generating code > Keywords > %isnumeric keyword (SDL script)
  
%isnumeric keyword (SDL script)
This keyword is used with the %if keyword to evaluate whether a property value can be interpreted as a numeric. If the property value can be interpreted as a numeric, True is returned.
Syntax
%isnumeric "<property name>"
Where <property name> is the automation interface name of the item property. For more information about the automation interface names of properties, see Object Attributes and associations under the Automation Interface chapter of the Integrity Modeler Help, and then click the required item type.
In this example, the Upper Array Bound value is 'ten' and the Lower Array Bound value is '1'.
%if (%isnumeric"Upper Array Bound") %and
(%isnumeric"Lower Array Bound") %then...
%isnumeric "Upper Array Bound" returns False, %isnumeric "Lower Array Bound" returns True.