Shop OBEX P1 Docs P2 Docs Learn Events
looking at two inputs at the line — Parallax Forums

looking at two inputs at the line

ArchiverArchiver Posts: 46,084
edited 2004-03-24 00:04 in General Discussion
hello can some one help with the next problem.

i want todo the next thing IF(in0=1,in1=0)then ...

but this is not working and i can't find anything about it that you
can monitor two inputs in one line i hope that someone can help me
or is it not possibly.

greetings erik

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-03-23 22:03
    In a message dated 3/23/2004 4:56:35 PM Eastern Standard Time,
    scholts@l... writes:


    > i want todo the next thing IF(in0=1,in1=0)then ...
    >
    > but this is not working and i can't find anything about it that you
    > can monitor two inputs in one line i hope that someone can help me
    > or is it not possibly.
    >

    Try this: if in0 = 1 and in1 = 0 then

    Sid


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-24 00:04
    Assuming you are looking for the conditions in your bad statement, do it
    like this:

    IF ((IN0 = 1) AND (IN1 = 0)) THEN
    ' do something about it
    endif

    ... by using logical AND you can "do something about it" when both
    conditions are true.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: erik [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=bcOD91pEgB6GZhHCe3nZ_qn2slCDjq4BUWgWzVWlTnyXEbbxjEpGcU3tzlmhd1Rs9TOqu7J2W0HmiXykKHC_bQ]scholts@l...[/url
    Sent: Tuesday, March 23, 2004 3:55 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] looking at two inputs at the line


    hello can some one help with the next problem.

    i want todo the next thing IF(in0=1,in1=0)then ...

    but this is not working and i can't find anything about it that you
    can monitor two inputs in one line i hope that someone can help me
    or is it not possibly.

    greetings erik
Sign In or Register to comment.