isRunningInServer
boolean session.isRunningInServer ( )
Description
Returns whether or not we are currently running in the server. This is a convenience method for doing something different in a script when running in the server as opposed to other modes
Parameters
This method does not receive any parameters.
Return Values
Returns true if and only if the scrape is currently running in the server.
Change Log
Version | Description |
---|---|
6.0.37a | Introduced for all editions. |
Examples
Retrieve Connection Timeout
if (session.isRunningInServer()) {
// do something only done in the server
}
// do something only done in the server
}
samt on 02/26/2016 at 2:54 pm
- Printer-friendly version
- Login or register to post comments