end if without block if error
end if without block if error
What does then END IF without block IF error mean?
-
- Veteran
- Posts: 399
- Joined: Wed Mar 02, 2005 9:01 pm
- Location: Nashville, Tennessee
- Contact:
I'll try to explain...
A block IF/THEN is an IF/THEN with the following syntax:
The main plus about it is that you can have multiple commands execute, as opposed to the line IF/THEN, or:
The error you described is means that the END IF is missing in that block, but is not needed for the line IF/THEN.
A block IF/THEN is an IF/THEN with the following syntax:
Code: Select all
IF <condition> THEN
<command>
<another>
<hey, look! it's another command!>
END IF
Code: Select all
IF <condition> THEN <command>