//ERDDAP/com.cohort.util/ScriptString2/parseBooleanToInt
parseBooleanToInt
[JVM]
open fun parseBooleanToInt(s: String): Int
This converts a string to a boolean and then a Int.
Return
Integer.MAX_VALUE (i.e., missing value) if s is null or s is "". Return 0 if s is "false", "f", or "0". Return 1 if for all other values. Case and leading/trailing spaces don't matter.
Parameters
JVM
s | the string |