getCurrentStation

The getCurrentStation function allows retrieving a string that contains the client currently executing the script.

Syntax

var Station = getCurrentStation();

 

Result

  • A string with the format <machineName>

Examples of Use

 

How to run code depending on the current client

var myStation = "<machineName>";

var currentStation = getCurrentStation();

if (currentStation === myStation) {

// Do something ...

}