$backgroundProcess.inExecution

Returns wheter the current template invokation is executed by a background process.
Syntax
    $backgroundProcess.inExecution{[background_process_name]?}
DocumentationReturns wheter the current template invokation is executed by a background process.
This function does not return whether a background process is executing somewhere, it just returns whether the current template is executed by it. If the background process name is given the function only returns true if we are currently in background process execution and the names match.
    Paramter:
      1: Background process name (optional).
    Returns:
      True (1) if the condition is met, false (0) otherwise.
    Throws:
      None.
Examples
We are $if{$backgroundProcess.inExecution{}}{now}{not} executed by a background process.
GroupSpecial
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters0
Maximum parameters 1