Statements like AND , OR
Close
Login to Your Account
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2017
    Country
    NETHERLANDS
    Posts
    43
    Post Thanks / Like
    Likes (Given)
    0
    Likes (Received)
    4

    Default Statements like AND , OR

    Are OR and AND statements possible.
    Just like

    IF[V345 EQ 5 OR V456 EQ 6]NEND

    IF[V345 EQ 5 AND V456 EQ]NEND

  2. Likes iMillJoe liked this post
  3. #2
    Join Date
    Feb 2015
    Country
    UNITED STATES
    State/Province
    Ohio
    Posts
    434
    Post Thanks / Like
    Likes (Given)
    111
    Likes (Received)
    125

    Default

    What control?

  4. #3
    Join Date
    Sep 2011
    Country
    UNITED STATES
    State/Province
    Virginia
    Posts
    25,620
    Post Thanks / Like
    Likes (Given)
    7561
    Likes (Received)
    8060

    Default

    Quote Originally Posted by TheDutchMultus View Post
    Are OR and AND statements possible.
    Just like

    IF[V345 EQ 5 OR V456 EQ 6]NEND

    IF[V345 EQ 5 AND V456 EQ]NEND
    Trivial to code an environment where they surely ARE "possible". I could do it as a CASEOF in one of my languages of choice. Or with hardware. Gates and such. Got the tee-shirts. Old ones by this late date. Very.

    But that has nought to do with the environment YOU may have.

    You haven't said even what race or tribe!

  5. #4
    Join Date
    Jun 2017
    Country
    NETHERLANDS
    Posts
    43
    Post Thanks / Like
    Likes (Given)
    0
    Likes (Received)
    4

    Default

    Solved:
    IF[[[V3 EQ 5]OR[V5 EQ 7]] EQ 1]NEND
    IF[[[V3 EQ 5]AND[V5 EQ 7]]EQ 1]NEND

    Tested on OSP 300 Okuma

  6. Likes iMillJoe, SMT liked this post
  7. #5
    Join Date
    Dec 2010
    Location
    PA
    Posts
    640
    Post Thanks / Like
    Likes (Given)
    175
    Likes (Received)
    167

    Default

    Quote Originally Posted by TheDutchMultus View Post
    Solved:
    IF[[[V3 EQ 5]OR[V5 EQ 7]] EQ 1]NEND
    IF[[[V3 EQ 5]AND[V5 EQ 7]]EQ 1]NEND

    Tested on OSP 300 Okuma
    I didn't know you could combine like that. Cool. In the past I would have split them into two statements.

  8. Likes iMillJoe liked this post

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •