# kotlin 空不空执行分支 **Published by:** [wincloud](https://paragraph.com/@wincloud/) **Published on:** 2023-04-01 **URL:** https://paragraph.com/@wincloud/kotlin ## Content null?.let{ println("非空") }?:let { println("空") } ?.let 执行的是非空逻辑 ?:let执行的是空逻辑 ## Publication Information - [wincloud](https://paragraph.com/@wincloud/): Publication homepage - [All Posts](https://paragraph.com/@wincloud/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@wincloud): Subscribe to updates