Results 1 to 6 of 6

Thread: SCAR version of !=

  1. #1
    Join Date
    Jul 2008
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default SCAR version of !=

    What is the SCAR version of '!=' (does not equal)? This would be really helpful and make scripts shorter, example

    Code:
    if(color1 != color2) repeat
    ....
    ...
    ..
    .
    until(false);
    But instead I need to write a big fat script with else and crap.
    Thanks in advance!

  2. #2
    Join Date
    Mar 2006
    Posts
    13,241
    Mentioned
    228 Post(s)
    Quoted
    267 Post(s)

    Default

    First off, your example is wrong...

    should be:
    SCAR Code:
    if(color1 = color2)then
    repeat
    ....
    ...
    ..
    .
    until(false)


    And here is != version

    SCAR Code:
    if not(color1 = color2)then
    repeat
    ....
    ...
    ..
    .
    until(false)

    STOP PM'ING ME

  3. #3
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    "if not"
    ....... why do you have make stuff soo much simpler? they don't look cool,, at alL!

    I would like
    SCAR Code:
    if(color1 != color2)
    Then
    color(1+2) = NULL
    Oh Hai Dar

  4. #4
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I think he means
    SCAR Code:
    if (Color1 <> Color2) then

  5. #5
    Join Date
    Jul 2008
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No, he was right.

    Thank you!

  6. #6
    Join Date
    Dec 2007
    Location
    Somewhere in Idaho
    Posts
    480
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by groog View Post
    No, he was right.

    Thank you!
    both are right. The actual operator is <>, his method was applying the not operator before the statement something like if not (x > 1) then ... Could also be an example of the not operator.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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