Give two attempts at inputting data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • buds100
    New Member
    • Feb 2008
    • 2

    Give two attempts at inputting data

    I am doing a programe where someone has to put in 1 for being a new customer and 2 for being established. if wrong data is put in then message is try again but only twice no loop.
    My problem is while i know this is if/else i dont know how to write if data is wrong try again (so last if/else.
    also is var Customers, customers=new, established OR var new customers, var established customers?

    would love help

    s
  • buds100
    New Member
    • Feb 2008
    • 2

    #2
    javaScript help needed basic stuff im afraid

    im sorry this is only easy stuff for you but it would help me. if your doing programe for client base 1 and 2 and they have to enter that data and if they get it wrong you have say to try again but without a loop they have only 2 attempts. while i know this is if/else im not sure about the last bit for try again?
    also var clientBase, clientbase=new, established OR var new var established

    would love some help
    thanks
    sara

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by buds100
      im sorry this is only easy stuff for you but it would help me. if your doing programe for client base 1 and 2 and they have to enter that data and if they get it wrong you have say to try again but without a loop they have only 2 attempts. while i know this is if/else im not sure about the last bit for try again?
      also var clientBase, clientbase=new, established OR var new var established

      would love some help
      thanks
      sara
      So, what have you done so far?
      P.S Next time make sure you are posting in the correct forum. Java != Javascript

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Threads merged and renamed.

        Comment

        • hirak1984
          Contributor
          • Jan 2007
          • 316

          #5
          Originally posted by buds100
          I am doing a programe where someone has to put in 1 for being a new customer and 2 for being established. if wrong data is put in then message is try again but only twice no loop.
          My problem is while i know this is if/else i dont know how to write if data is wrong try again (so last if/else.
          also is var Customers, customers=new, established OR var new customers, var established customers?

          would love help

          s
          what r u using? java or javascript? please post the code u tried so far

          Comment

          Working...