For the complete documentation index, see llms.txt. This page is also available as Markdown.

GetSystemSetting

Retrieve a Java System property or environment value by name.

It looks at properties first then environment variables second.

Please note that the property or environment variable name is case-sensitive.

You can also pass a default value to return if the property or environment variable is not found.

Method Signature

GetSystemSetting(key=[String], defaultValue=[Any])

Arguments

Argument
Type
Required
Description
Default

key

String

true

The name of the system property or environment variable to retrieve

defaultValue

Any

false

The default value to return if the property or environment variable is not found

Examples

Get a system setting or environment variable

result = getSystemSetting( "java.version" );
writeOutput( isString( result ) );

Result: true

With a default value

Result: default-value

Last updated

Was this helpful?