Shop OBEX P1 Docs P2 Docs Learn Events
<> operator? — Parallax Forums

<> operator?

ArchiverArchiver Posts: 46,084
edited 2003-01-19 04:22 in General Discussion
Can anyone tell me what this does? this if from the
"Stamps Works" book, Version 1.2 page70.
IF (DIGIT <> 2) THEN Skip_dp

Thanks, Wayne

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-01-19 03:52
    <> means "not equal to".
    In other words, "if x < or > y".
    Or, "if X is less than or greater than y" - ie not equal to y.

    --

    http://www.lennard.net.nz/
    Ben Lennard, NCEE, Dip EE

    Electronics R&D - Kiwi Made, Innovative Electronics.

    Hm: +64 4 972 7567
    Mb: +64 21 536 627
    87 Spencer Street
    Crofton Downs
    Wellington
    New Zealand

    "To the optimist, the glass is half full. To the pessimist, the glass is
    half empty. To the engineer, the glass is twice as big as it needs to be."

    No animals were harmed in the transmission of this email, although the
    Dog next door is living on borrowed time, let me tell you! Those of you
    with an overwhelming fear of the unknown will be gratified to learn that
    there is no hidden message revealed by reading this warning backwards.

    > From: "brokenpaddle2001 <brokenpaddle2001@y...>"
    > <brokenpaddle2001@y...>
    > Reply-To: basicstamps@yahoogroups.com
    > Date: Sun, 19 Jan 2003 03:42:35 -0000
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] <> operator?
    >
    > Can anyone tell me what this does? this if from the
    > "Stamps Works" book, Version 1.2 page70.
    > IF (DIGIT <> 2) THEN Skip_dp
    >
    > Thanks, Wayne
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and Body
    > of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2003-01-19 04:20
    If you look through the rest of your source you'll find a label Skip_dp:. If
    Digit isn't equal to two, that line will make the program jump to Skip_dp
    and continue from there - skipping everything between the two.

    Original Message
    From: <brokenpaddle2001@y...>
    To: <basicstamps@yahoogroups.com>
    Sent: Saturday, January 18, 2003 7:42 PM
    Subject: [noparse][[/noparse]basicstamps] <> operator?


    > Can anyone tell me what this does? this if from the
    > "Stamps Works" book, Version 1.2 page70.
    > IF (DIGIT <> 2) THEN Skip_dp
    >
    > Thanks, Wayne
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2003-01-19 04:22
    <> means Not equal to.
    -Martin

    --- In basicstamps@yahoogroups.com, "brokenpaddle2001
    <brokenpaddle2001@y...>" <brokenpaddle2001@y...> wrote:
    > Can anyone tell me what this does? this if from the
    > "Stamps Works" book, Version 1.2 page70.
    > IF (DIGIT <> 2) THEN Skip_dp
    >
    > Thanks, Wayne
Sign In or Register to comment.