Hi batvink
Thanks for your post, I'm only quoting what the book says, it says there are three forms of IF statements:
Quote: "
IF condition THEN
instructions
ENDIF
IF condition THEN
instructions
ELSE
instructions
ENDIF
IF
condition 1:
instructions
condition 2:
instructions
condition x:
instructions
ELSE
instructions
ENDIF
"
It doesn't mention about CASE, END CASE it just says that by placing a colon at the end of each option, only the condition that is true, will be carried out, all others will be ignored.
The reason I originally posted this question, was because I am not familar with this so called third type of IF statement, I have read other books, and it made no reference to it, I assume your right in what your saying about CASE, END CASE or maybe a FUNCTION could be used.
Has anyone else read the book?