Just want confirmation on how if statements work.
If I have something like:
if my_var was 9 this be picked up in the first evaluation ie the first if. That being the case my question is: Are the other elements of the if statement evaluated or will the process jump to the end of the code as soon as one of the ifs are met.
TIA
[blue]DBomrrsm[/blue] ![[bandito] [bandito] [bandito]](/data/assets/smilies/bandito.gif)
[blue]Software code, like laws and sausages, should never be examined in production[/blue][black] - [/black][purple]Edward Tenner[/purple]
If I have something like:
Code:
IF my_var < 10
THEN do something
elsif my_var < 100
THEN do something
else do something
end
if my_var was 9 this be picked up in the first evaluation ie the first if. That being the case my question is: Are the other elements of the if statement evaluated or will the process jump to the end of the code as soon as one of the ifs are met.
TIA
![[bandito] [bandito] [bandito]](/data/assets/smilies/bandito.gif)
![[bandito] [bandito] [bandito]](/data/assets/smilies/bandito.gif)
[blue]Software code, like laws and sausages, should never be examined in production[/blue][black] - [/black][purple]Edward Tenner[/purple]