While wend

BlitzMax Forums/BlitzMax Beginners Area/While wend

Jonah(Posted 2011) [#1]
I am a new Blitzmax user and have run into a lot of trouble with while wend loops. Does any1 know the main reason why it would say "'Wend' without matching 'While'" even though there is a while almost directly above?


Czar Flavius(Posted 2011) [#2]
Could you post the code?


BladeRunner(Posted 2011) [#3]
My guess:
there is one of the following: a wrong nested if-then-endif, Repeat-until,for-next in between your while and your wend.


Warner(Posted 2011) [#4]
While (true)
 If (x < 3) Then
   x = 10
Wend



Czar Flavius(Posted 2011) [#5]
.

Last edited 2011


Jonah(Posted 2011) [#6]
its all good now... forgot to endif inside while wend