As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
var nameofDoc=new String(document.properties.title); if(!nameofDoc.contains("TEST_"))
TypeError: Cannot find function contains
var nameofDoc=new String(document.properties.title); if ((nameofDoc.indexOf("TEST_") != -1)){ // TRUE }else{ //FALSE }
var emptyString = ""; if (emptyString == ""){ //TRUE }else{ //FALSE }
var c = new java.lang.String("some text"); if(c.contains('s')) { } else { }
var jstrOrigName = new java.lang.String(document.properties.name); if (!jstrOrigName.contains("resized_")) {
var jSstrOrigName = new String(document.properties.name); if (!jSstrOrigName.contains("resized_")){
if (strOrigName.indexOf("resized_") != -1){