ftos.context.getDepth
Retrieves the nested execution depth of the script context.
Syntax
Copy
ftos.context.getDepth(): number;
Return Value
Returns a numeric value representing the current script execution depth.
Each time a script calls an API that triggers another script execution, the depth increments by 1. When the nested execution completes and control returns to the calling script, the depth decrements by 1. This function is useful for monitoring and controlling recursive or nested script executions.