G
Guest
I am having a dispute at work over endifs, and cannot find any treatise on
this. So I am hoping that I can get a lot of correspondece confirming my
belief.
Here it is: I believe the following: (1)If a language has an "endif", then
every "if" statement requires an endif, and (2) every "endif" goes with the
last "if".
For example,
If .....
if
endif
should not compile because there must be two "endif"s and the last "endif"
goes with the last "if". The actual nested if statement is far more complex,
and it is just being used in a presentation that is not being compiled
(psuedo code).
Finally, were can I find this? I don't care the language, although some
version of Basic would be best since that is what my friend understands.
Thanks for helping
this. So I am hoping that I can get a lot of correspondece confirming my
belief.
Here it is: I believe the following: (1)If a language has an "endif", then
every "if" statement requires an endif, and (2) every "endif" goes with the
last "if".
For example,
If .....
if
endif
should not compile because there must be two "endif"s and the last "endif"
goes with the last "if". The actual nested if statement is far more complex,
and it is just being used in a presentation that is not being compiled
(psuedo code).
Finally, were can I find this? I don't care the language, although some
version of Basic would be best since that is what my friend understands.
Thanks for helping