How i back to function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How i back to function

I write code for calc and I had problem when I do if and if else and when I do else I wanna back to the value that's different on those conditions but I didn't find how

2nd Mar 2017, 10:10 PM
El missouri
El missouri - avatar
1 Answer
+ 2
It's hard to say without an example of what you're asking. However, the order of the if statements matters. You can also nest if statements. If you're nesting too deep, you might consider a different structure. Maybe a switch statement or a loop.
3rd Mar 2017, 12:33 AM
Anthony Vanover
Anthony Vanover - avatar