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 > SDL script extensions for TDK > %del and %undel statements (SDL script)
  
%del and %undel statements (SDL script)
This topic applies to TDK SDL script extensions. For more information, see Overview of SDL script extensions for TDK (SDL script).
SDL Script Extensions for TDK:
%object AClass= %c $ Let's %c be a class
%del AClass
%for %search ("", "Class")
$ AClass never becomes %c here
%endfor
%for %all %search ("", "Class")
$ AClass is iterated here because %for has the optional %all modifier
%endfor
%undel AClass
%for %search ("", "Class")
$ AClass is iterated here because it has been %undeleted
%endfor
%del <object expression> prevents the target object to be subsequently iterated by %for loops. %del marks the object in such a way so that %for automatically ignores it. %undel restores the object back to its enumerable status.
%for ignores the %deleted objects unless the optional %all modifier is used in the %for construct.