Yup that's the usual solution or if there's only o...
# announcements
k
Yup that's the usual solution or if there's only one variable you could do
list[i]?.let { value -> ... }