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 > Operators > - operator (SDL script)
  
- operator (SDL script)
This operator performs numeric subtraction. Each argument must be enclosed by parentheses.
In this example, 1 is subtracted from the nSize local variable.
%setlocalvar "nSize" = (%getlocalvar "nSize") - (1)