Ask Experts Questions for FREE Help!
Ask    ||    Answer
 
Advanced  
 

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Other Programming   »   If-Then-Else statement values

 
Thread Tools Search this Thread Display Modes
Question
 
 
#1  
Old Jul 28, 2009, 02:11 PM
andyhaus1057
Junior Member
andyhaus1057 is offline
 
Join Date: Sep 2007
Posts: 109
andyhaus1057 See this member's comment history on his/her Profile page.
If-Then-Else statement values

Hello,
How I would go about designing an If-Then-Else statement that determines whether the points variable is outside the range of 9 to 51. If the variable holds a value outside this range it should display "Invalid points." Otherwise, it should display "Valid points." ?

Reply With Quote
 
     

Answers
 
 
Old Jul 28, 2009, 02:24 PM   #2  
Ultra Member
ebaines is offline
 
Join Date: Apr 2007
Location: Illinois, US
Posts: 3,762
ebaines See this member's comment history on his/her Profile page.ebaines See this member's comment history on his/her Profile page.ebaines See this member's comment history on his/her Profile page.ebaines See this member's comment history on his/her Profile page.
You could do it like this:

If points<9
Then "Invalid Points"
Else if points > 51
Then "Invalid points"
Else "Valid Points"

Or this:

If AND( points>=9, points <=51) "Valid points"
else "Invalid points"

Comments on this post
andyhaus1057 agrees: thanks for the help ;0)
  Reply With Quote
 
     

Your Answer
Email me when someone replies to my answer
Join Login





Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

 
Similar Sponsors


Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

Similar Threads
income statement, owners equity statement and balance sheet
(6 replies)
The relationship between cashflow statement, fundflow statement and balance sheet
(0 replies)
Finance Income Statement, Statement of Stockholder Equity, Balance Sheet.
(0 replies)
What is the correct financial statement-statement of cash flows wording?
(2 replies)
Multiple-step income statement in good form and retained earnings statement
(0 replies)

Search this Thread

Advanced Search

Bookmarks

Sponsors



Copyright ©2003 - 2009, Ask Me Help Desk.
All times are GMT -8. The time now is 10:51 PM.