if expression [message #1758089] |
Thu, 23 March 2017 12:29 |
Banafsheh Azizi Messages: 328 Registered: July 2016 |
Senior Member |
|
|
I have the below code, if I want to add one if condition before "if condition2" without else part what can I do?
if condition1
then
exp1
else
if condition2
then
exp2
else
exp3
endif
endif;
if I do something like below, I have a syntax error("expected else").
if condition1
then
exp1
else
if extra condition
then if condition2
then
exp2
else
exp3
endif
endif
endif;
"extra condition" ensures that "condition2" is defined.
Member of MDSE Research Group
http://mdse.ui.ac.ir
[Updated on: Thu, 23 March 2017 12:36] Report message to a moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03795 seconds