ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Errors / WLanguage errors
  • Reason
  • Correction
  • Examples
  • Using a conditional statement without END
  • Nested conditional statements
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Error 27: No END statement is associated with this ELSE
Reason
You are using a conditional statement (IF THEN ELSE). The END keyword must be used to end this statement.
Correction
Check the code of your conditional statement and add the END keyword if necessary.
Examples

Using a conditional statement without END

Code triggering the error
IF TABLE_Lesson.Empty THEN
IMG_Draw.State = Grayed
ELSE
IMG_Draw.State = Invisible
Possible correction
Use the END keyword to specify that the conditional condition is ended.
IF TABLE_Lesson.Empty THEN
IMG_Draw.State = Grayed
ELSE
IMG_Draw.State = Grayed
END

Nested conditional statements

Code triggering the error
IF EDT_Age<18 THEN
STC_Caption = "Child"
ELSE
IF EDT_Age<60 THEN
   STC_Caption = "Adult"
END
Possible correction
Check whether all the nested statements are properly ended (with the END statement for example). In our example, the second IF statement has no associated END. Add an END statement.
IF EDT_Age<18 THEN
STC_Caption = "Child"
ELSE
IF EDT_Age<60 THEN
   STC_Caption = "Adult"
END
END
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help