When used at the beginning of a script, the ReferenceSharedSubString function helps BarTender accurately analyze your script when trying to determine how often it should be run. This prevents BarTender from skipping reference to a named data source, especially when conditional statements are used in your scripts.