Beefer3
New Member
Can someone tell me why this does not work when compiling with PIC Basic Plus from sonsiviri.com
IF [STR SERDATA] = "HouseLights1" THEN
CLS
PRINT AT 1,1, "Turning on"
PRINT AT 2,1, "the house."
ENDIF
I get this error:
Error at Line [45] In file [SonyCD.bas] *** Misplaced or Incorrect 'ENDIF' command! ***
all my other IF THEN statements work in my code. I have a feeling it is the [STR SERDATA] bit. How do I fix this or is this just a PIC Basic Plus program error?
thanks
IF [STR SERDATA] = "HouseLights1" THEN
CLS
PRINT AT 1,1, "Turning on"
PRINT AT 2,1, "the house."
ENDIF
I get this error:
Error at Line [45] In file [SonyCD.bas] *** Misplaced or Incorrect 'ENDIF' command! ***
all my other IF THEN statements work in my code. I have a feeling it is the [STR SERDATA] bit. How do I fix this or is this just a PIC Basic Plus program error?
thanks