Hi, I am new to rust and I have done python and some ruby.
First my piece of code
let va = if 2 != 3 {7} else if 2 == 2 {2};
Why cannot I do this in the compiler it gives me an error that I need parenthesis but why cannot I add an else if here.
SO in simple words my question is that how can I add else if in conditionals like these.
Thanks in Advance~