Shop OBEX P1 Docs P2 Docs Learn Events
if then statment — Parallax Forums

if then statment

night_botnight_bot Posts: 4
edited 2009-05-18 05:21 in BASIC Stamp
I am having a problem with a very simple few lines of code.


if (in7 = 0 ) then
high 12
else
low 12
endif

I keep getting an error code after the then statment saying, expecting a lable. I do not get what it means by that... Any help will be apriciated.

Comments

  • Brad_HBrad_H Posts: 35
    edited 2009-05-17 19:11
    Hello night_bot, Do you have the proper directives as your first and second lines?

    ' {$STAMP BS2}
    ' {$PBASIC 2.5}
  • night_botnight_bot Posts: 4
    edited 2009-05-17 19:53
    Yes that was it. Something so simple.... lol· Thank you.
  • Brad_HBrad_H Posts: 35
    edited 2009-05-18 05:21
    You're welcome
Sign In or Register to comment.