Lesson 20 of 25 · +100 xp

If Else

Returns a value.

Explained simply

Your task

Write let n = if x > 0 { 1 } else { -1 };

ifelse.rust
← Back