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 > %localnumeric keyword (SDL script)
  
%localnumeric keyword (SDL script)
This keyword declares a local variable as a numeric. A local variable can exist only in the context of the generation template for which the local variable is declared.
* 
After declaring a local variable, you can set its content through the %setlocalvar keyword and read its content through the %getlocalvar keyword.
Syntax
%localnumeric "<name of variable>"
In this example, the code declares a local numeric variable named nHasStereotype.
%localnumeric "nHasStereotype"