Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Other Programming (https://www.askmehelpdesk.com/forumdisplay.php?f=437)
-   -   If-Then-Else statement values (https://www.askmehelpdesk.com/showthread.php?t=380854)

  • Jul 28, 2009, 02:11 PM
    andyhaus1057
    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." ?
  • Jul 28, 2009, 02:24 PM
    ebaines

    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"

  • All times are GMT -7. The time now is 02:02 PM.