Thomas -
If TestStand calls a module from a substep (edit, pre, post, or custom), the sequence context will define at runtime the properties RunState.SubstepName and RunState.Substep. If you pass the context to the module, the module can use the TS API to determine if one of these properties exist. If you cannot pass the context to the module, but have a "boolean" parameter that indicates whether the a substep is calling it, you could use the expression 'PropertyExists("RunState.SubstepName")' for the parameter value.
If you have no way of getting the context to the DLL or pass a parameter, there is no way to tell.
Scott Richardson
Scott Richardson
https://testeract.com