Ruby-like 'unless' for C#?

c#, if-statement, ruby

Solution

What about :

if (i<=5) i++;

`if (!(i>5)) i++;` would work too.

Hint : There is no `unless` exact equivalent.

Problem

Is there any way to do something similar in C#? ie. ``` i++ unless i > 5; ``` here is another example ``` weatherText = "Weather is good!" unless isWeatherBad ```

Original source