Hello,
I want to run 2 independent 'if else fi' statements in one script, like given below. Individually I have each script-set working perfectly but cannot get them together to run one after the other. On the net I only got examples of nested ones.
if queryA ; then echo Output1 else echo output2 fi
if queryB ; then echo output3 else echo output4 fi
They are not nested if else statements. They running independently in a common script. They have no relation with each other.
I am getting syntax errors for 'fi'. What is the correct syntax for the above combination? Thanks in advance for any help.