``` val s = string if(s != null) { s.length() ...
# getting-started
s
Copy code
val s = string
if(s != null) {
    s.length()
else {
  __do_something_else__
}