//ERDDAP/com.cohort.util/ScriptString2/ifSomethingConcat
ifSomethingConcat
[JVM]
open fun ifSomethingConcat(a: String, separator: String, b: String): String
This cleverly concatenates the 2 strings (with separator, as appropriate).
Return
a.trim(), a.trim()+separator+b.trim(), b.trim(), or ""
Parameters
JVM
a | may be null or "" or something |
separator | will only be used if a and b are something. |
b | may be null or "" or something |