Overslaan en naar de inhoud gaan

//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

amay be null or "" or something
separatorwill only be used if a and b are something.
bmay be null or "" or something