%isin keyword (SDL script)
This keyword is used with the %if keyword to evaluate whether a string is a substring of another string. If the substring is in the string, True is returned.
Syntax
%if <text1> %isin <text2> %then...
where <text1> and <text2> are text strings or the return of a property or variable. For example:
"<string text>"
%custom "<name of property>"
%getvar "<name of variable>"
For more information about the automation interface names of property names, see Object Attributes and associations under the Automation Interface chapter of the Windchill Modeler Help, and then click the required item type.
In this example, the keyword evaluates whether the Name property includes the text 'sad_'.
%if "sad_" %isin %custom "Name" %then...
Was this helpful?