CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 91 users online: 2 members, 62 guests and 27 bots.
Members: None.
Bots: VoilaBot (3), VoilaBot (2), Googlebot (20), Ask Jeeves (1), MSN/Bing (1).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
Author Message
elfprince13


OVER NINE THOUSAND!


Joined: 23 May 2005
Posts: 10225
Location: A galaxy far far away......

Posted: 17 Nov 2006 10:44:00 am    Post subject: Switch Statements in TI-Basic


Code:

A
If Ans<5
Then
*code here*
Goto BK
If Ans>5
Then
*code here*
Goto BK
"default case
*code here*
Lbl BK
End

_________________
StickFigure Graphic Productions || VSHI: Vermont Sustainable Heating Initiative


Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55733
Location: Earth, Sol, Milky Way

Posted: 17 Nov 2006 12:40:01 pm    Post subject:

That won't work. If A >=5, none of the statements will trigger.
_________________


Back to top
tifreak8x


Guru


Joined: 16 Mar 2005
Posts: 9057
Location: Sol System

Posted: 17 Nov 2006 01:03:39 pm    Post subject:

Yeah... It is thinking that the If Ans>5 part is still a part of the first If Then statement, and will totally ignore it...
_________________
Projects: AOD Series: 70% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Look here for Assembly Resources.
Back to top
elfprince13


OVER NINE THOUSAND!


Joined: 23 May 2005
Posts: 10225
Location: A galaxy far far away......

Posted: 17 Nov 2006 02:03:08 pm    Post subject:

0x5, pwn on me
_________________
StickFigure Graphic Productions || VSHI: Vermont Sustainable Heating Initiative


Back to top
Kllrnohj


/=\ PH34R |\/|3


Joined: 24 May 2005
Posts: 8189

Posted: 17 Nov 2006 04:23:35 pm    Post subject:

All you'd have to do would be to add an "End" after each of the Goto's Rolling Eyes
_________________
There are only two kinds of programming languages: those people always bitch about and those nobody uses. (Bjarne Stroustrup)
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55733
Location: Earth, Sol, Milky Way

Posted: 17 Nov 2006 05:48:01 pm    Post subject:

Indeed, but then his method wouldn't really be that unique anymore. It's been done plenty of times with that + Ends before.
_________________


Back to top
rivereye


Future Admin


Joined: 16 Mar 2005
Posts: 5450
Location: Out Fishing

Posted: 17 Nov 2006 06:14:33 pm    Post subject:

true, I have seen it. I don't think it is all that useful.
_________________
I am the eye of the river
>(<')


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 GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.025918 seconds.