i would like to check a combobox, if the Layer is "LVS" or "PRJ". If one of these is selected, i want to return a Path as a String, but the function always return "null". Can someone help me maybe?
private String getGroovyPath(MyTitleAreaDialog dialog)
{
    String LayerLVS = "lvs/dev/scripts/123/aderf/de/lock/clt/Simplescript.groovy";
    String LayerPRJ = "prj/dev/scripts/123/aderf/de/lock/clt/Simplescript.groovy"";
    if(dialog.getLayer() == "LVS")
    {
        return LayerLVS;
    }
    else if(dialog.getLayer() == "PRJ")
    {
        return LayerPRJ;
    }
    return null;
}
 
     
    