Tobias Wohlfarth
11/29/2024, 6:44 PMtoken: EndTagToken?
in a when expression i want to check the following:
it should be true if the token is null OR if token.Value is equal to specific String
At the moment i use the following construct; is there more concise and shorter way to solve this?
otherCondition && token?.let{ it.Value == "b" } ?: trueSam
11/29/2024, 7:17 PMotherCondition && (token == null || token.Value == "b")Daniel Pitts
11/30/2024, 2:34 PM