getEnvironmentValue (NotesSession - JavaScript)

Gets the value of a numeric environment variable.

Defined in

NotesSession

Syntax

getEnvironmentValue(vname:string) : any

getEnvironmentValue(vname:string, issystem:boolean) : any

Parameter Description
vname The name of the environment variable.
issystem If true, the method uses the exact name of the environment variable. If false or omitted, the method prefixes a dollar sign to the name.
Return value Description
any The value of the environment variable.

Usage

Do not use this method for string values.

Examples

This computed field displays the value of a system environment variable.
var v = session.getEnvironmentValue("PANEL_SIZE_XY", true);
if(v == null) {
	return "Panel size XY not set"
} else {
	return v
}