Can't end IF statements
Posted: Thu Feb 20, 2014 2:11 pm
Hi all,
Can somebody please tell me what I'm doing wrong here?
I've typed the following code:
I've looked online at examples of other IF statements and can't see anything wrong with what I've done.
So it must, therefore, be something bleeding obvious.
Any and all help appreciated!
Thanks again
Can somebody please tell me what I'm doing wrong here?
I've typed the following code:
On application, I receive the following error:repeat with x = 1 to number of characters in currentWord
if wordArray[x] is " "
then put "/" after field "legend"
else put "*" after field "legend"
end if
end repeat
It seems that LiveCode wants me to end repeat before ending IF, which makes no sense to me. If I do it that way, I'm then told that IF is not a valid handler.card "game": compilation error at line 49 (repeat: missing 'end repeat'), char 4
I've looked online at examples of other IF statements and can't see anything wrong with what I've done.
So it must, therefore, be something bleeding obvious.
Any and all help appreciated!
Thanks again