This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's TI-BASIC subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. TI-Basic => TI-BASIC
Author Message
Omega364


Newbie


Joined: 10 Mar 2009
Posts: 19

Posted: 13 May 2009 06:39:28 pm    Post subject:

well as a person pretty new to coding i am still deal with the "If" command, its pretty confusing to have
If X=2
If X=3
If X=4

and so on i was wonder if there was a way to code it so does have all those lines of code, especially when telling it

If X=/=(Does not equal) 2
If X=/= 3

and so on mainly when they all go back to the same spot/label
Back to top
simplethinker
snjwffl


Active Member


Joined: 25 Jul 2006
Posts: 700

Posted: 13 May 2009 07:18:15 pm    Post subject:

You can use OR to do that:

Code:
:If X=1 or X=2 or X=3
:Disp "HELLO"
Back to top
Omega364


Newbie


Joined: 10 Mar 2009
Posts: 19

Posted: 13 May 2009 08:27:00 pm    Post subject:

thanks simplethinker that helps a great deal
Back to top
simplethinker
snjwffl


Active Member


Joined: 25 Jul 2006
Posts: 700

Posted: 13 May 2009 11:27:52 pm    Post subject:

Omega364 wrote:
thanks simplethinker that helps a great deal

No problem Smile A great site to look into is TI-Basic Developer.
Back to top
Omega364


Newbie


Joined: 10 Mar 2009
Posts: 19

Posted: 14 May 2009 02:58:44 pm    Post subject:

thats also help a great deal thanks simplethinker
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement