ScriptName()

function ScriptName(): string;

This function returns the name (short description) of the script currently being run.

Example

{
  var snam = ScriptName();
  Log(snam); // will log (for example): Send email notification
}