Lesson 6 of 15 · +100 xp

If Expression

Returns value.

Explained simply

Your task

Write val s = if (x > 0) "pos" else "neg"

if.scala
← Back