Liquid UI - WS Reference Library

Change title based on the database



This is a very simple example of using the system variable "_database". This system variable holds a string value of what the name of the database or system ID is. This is useful for when you want to conditionalize scripts based on what system they are in. A script might need to run a certain way for the QAS system versus the PRD system.

User Interface

Navigate to the Easy Access Screen.


Liquid UI Script


// Depending on what databse is being used
// the title should display differently

if(_database == "TR1"){
    title("Welcome to ZEUS");
else if(_database == "TRX"){
    title("Welcome to JUNEAU");
else if(_database == "ID7"){
    title("Welcome to ORION");

Was this information helpful? Send Feedback