TI-89 HomeGames ArchiveTitanium GamesGames How ToProgramsFAQForumTI-89 WikiLinks

Trying to use If Statement

 
Post new topic   Reply to topic    Your TI-89 Resource Forum Index -> BASIC Programming
Author Message
Robnboard



Joined: 19 Oct 2008
Posts: 1

PostPosted: October 19, 2008 7:52 PM    Post subject: Trying to use If Statement Reply with quote

I am trying to get an If statement to separate a condition and display the value of Q. Using Apps Editor on the Ti-89 Titanium.


:If pumptype=0 Then
:Q=1.62e-4*(2*(liner^2-rod^2))*stroke*eff
:
:If pumptype=1 Then
:Q=2.43e-4*liner^2*stroke*eff
:EndIf
:EndIf
:Disp Q
EndPrgm

displays the letter q, doesnt appear to be solving for it with above inputs(stroke,eff etc...)

Do I need to be using some sort of return command, or solve function here?
Back to top
View user's profile Send private message
Boom



Joined: 09 Feb 2009
Posts: 2

PostPosted: February 9, 2009 4:38 PM    Post subject: Reply with quote

I am going to assume that all the stuff after the 'Q=' is what u want to be solved and placed into 'Q'.

if so then place that 1st then a -> (found over 'ON') then Q.
if u want it to show the text itself then place the stuff before the -> in" ".

hope that helps you.
Back to top
View user's profile Send private message
Display posts from previous:    View previous topic : View next topic  
Post new topic   Reply to topic    Your TI-89 Resource Forum Index -> BASIC Programming All times are GMT - 6 Hours
Page 1 of 1

 
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

Contact Us | Privacy Policy | Disclaimer | Trademarks

Copyright ©2006 All rights reserved.


Free Greeting Cards | Girly Myspace Layouts | Myspace Unblocker |