Shop OBEX P1 Docs P2 Docs Learn Events
BS2P24 IC Basic Stamp 2P — Parallax Forums

BS2P24 IC Basic Stamp 2P

CreativeCreative Posts: 11
edited 2005-10-19 08:51 in BASIC Stamp
Hi, may i ask why the example under the help topics of 'If Then Else', apply into the program could never work. It gives us a syntax error when the { is placed and the 'else' word never got hightlighted to blue.

Comments

  • CreativeCreative Posts: 11
    edited 2005-10-19 08:16
    Oh and by the way, im using v2.2
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2005-10-19 08:51
    Creative -

    Are you using the following compiler directive, as also noted in the Help File:
    '{$PBASIC 2.5}

    If not, you need to place that compiler directive at the beginning of your program.

    Regards,

    Bruce bates
Sign In or Register to comment.