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 > System variables > sysPathSeparator system variable (SDL script)
  
sysPathSeparator system variable (SDL script)
For the C and C++, the sysPathSeparator system variable (a global string) returns either '/' or '\':
If the Use UNIX Style Include Path Separators check box is selected on the Launch ACS/TDK dialog, '/' is returned.
If the Use UNIX Style Include Path Separators check box is cleared on the Launch ACS/TDK dialog, '\' is returned.
For Ada, Java and SQL, the sysPathSeparator system variable always returns '\'.
This system variable is useful for generating separators that are correct for the target operating system.
In this example, the strDots variable is set up to use a slash mark or backslash, depending on whether the Use UNIX Style Include Path Separators check box has been selected or cleared.
%setlocalvar "strDots" = ("..") & (%getvar "sysPathSeparator")