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 > %custom keyword (SDL script)
  
%custom keyword (SDL script)
This keyword returns the value of a standard or extended property for the current item. The value is returned as a string. SDL script frequently uses the %custom keyword to evaluate conditions in if...then...else statements.
The current item is derived as follows:
ACS calls the top-level Generate.sdl generation template for each item (Model, Package or Class) that is selected either directly or indirectly for generation. On entering the Generate.sdl generation template, the selected Model, Package or Class is the current item.
The current item remains as the selected Model, Package or Class until a For loop iterates a collection of linked items or items in a list. During a For loop, the current item is the item that is currently being iterated.
After leaving a For loop, the current item reverts to the item that was the current item before entering the For loop.
* 
You can use the %lcustom keyword to return a property as all lowercase and the %ucustom keyword to return a property as all uppercase.
Syntax
%custom" <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 value of the Access property is returned. If the Access property is set to 'Public', the returned value is 'Public'.
%custom "Access"