I have a .js file with the following info:
function GetCESCustomerFacingVersion() {
return “018.20230227.2”;
}
function GetPSSCustomerFacingVersion() {
return “018.20230227.2”;
}
function GetTheAppVersion() {
return “018.20230227.2”;
}
I’m trying to create an analysis to just export the number. I’ve tried using the following:
preceding texts of first “;” of following text of first “return” of (it as string) of lines of files “C:\filename.js”
But I get “Singular expression refers to non-unique object” because there’s more than one. I even tried
preceding texts of last “;” of following text of last “return” of (it as string) of lines of files “C:\filename.js”
Hoping that it’ll grab the just the last return but that didn’t work either. Got the same message. I tried
preceding texts of last “;” of following text of last “GetTheAppVersion()” of (it as string) of lines of files “C:\filename.js”
But that also didn’t work because the GetTheAppVersion() is in a previous line. Any help would be appreciated.