Bernhard
08/01/2018, 7:25 PMAndreas Sinz
08/01/2018, 7:27 PMheader["Key"]?.takeIf { it.startsWith(...)}?.let {doSomething() }
dalexander
08/01/2018, 7:27 PMsomeNullable?.let
could be what you are looking for, but there might be other options depending on the details.Shawn
08/01/2018, 7:27 PMBernhard
08/01/2018, 7:28 PM