+ Reply to Thread
Results 1 to 3 of 3

Thread: Thing referring to another thing - And another question

  1. #1
    Wire Amateur Shadow7's Avatar
    Join Date
    Aug 2007
    Posts
    30

    Default Thing referring to another thing - And another question

    Greetings, I'm wondering, I have a chip that I've got an input of Distance, but if nothing is inputted it should have a default number,

    now how do I make it so this line:

    Distance=200 would change if the input have something else in mind?





    Other question: the knot example in the expression2 documentation does not work, and I can't figure out what's wrong, and why I can't use km/h instead

    Help?

    Thanks <3

  2. #2
    Wire Sofaking Officer Tibbles's Avatar
    Join Date
    Aug 2008
    Location
    Barnus Philbert Boulevard
    Posts
    867

    Default Re: Thing referring to another thing - And another question

    Code:
    if(Distance==0){DistanceOut=200} else{DistanceOut=Distance}

    I think that that's what your asking for.

  3. #3
    Wire Amateur Shadow7's Avatar
    Join Date
    Aug 2007
    Posts
    30

    Default Re: Thing referring to another thing - And another question

    Thanks, worked like a charm Tibbles

+ Reply to Thread

Similar Threads

  1. The RT camera thing again
    By Wolvenmoon in forum Ideas & Suggestions
    Replies: 14
    Last Post: 02-11-2009, 11:23 AM
  2. Wiremod thing that lets you edit the value without updating the thing?
    By Takinu in forum Installation and Malfunctions Support
    Replies: 4
    Last Post: 09-13-2008, 02:20 PM
  3. HELP ME! EVERY THING IS....
    By tonytony in forum Installation and Malfunctions Support
    Replies: 17
    Last Post: 03-25-2008, 11:43 AM
  4. Car bomb thing :D
    By Jammymanrock in forum Finished contraptions
    Replies: 2
    Last Post: 07-20-2007, 11:01 PM
  5. E-Gate add thing
    By uoykcuf in forum Installation and Malfunctions Support
    Replies: 4
    Last Post: 07-18-2007, 04:02 PM

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
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots