[Solved] How to make an else if and else in this If Statement


Sure but our (or at least my) human brain doesn’t like reading it 😉

num1 = num2 != 0  
            ? num2 
              : num3 != 0  
            ? num3 
              : num4 != 0  
            ? num4 
              : num5 != 0  
            ? num5 
              : ""

spacing is not required just makes it more readable.

5

solved How to make an else if and else in this If Statement