Which is better, switch or if methods?

  • (2 Pages)
  • +
  • 1
  • 2

16 Replies - 443 Views - Last Post: 16 May 2019 - 04:14 AM Rate Topic: -----

#16 jon.kiparsky   User is offline

  • Beginner
  • member icon


Reputation: 11499
  • View blog
  • Posts: 19,572
  • Joined: 19-March 11

Re: Which is better, switch or if methods?

Posted 15 May 2019 - 09:48 PM

Yeah, that looks a lot like the Java approach. So it seems to me that this would be hard to do with an if chain - am I missing something?
Was This Post Helpful? 0
  • +
  • -

#17 Ben_C   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 25-May 18

Re: Which is better, switch or if methods?

Posted 16 May 2019 - 04:14 AM

Thanks for all the feedback, it has been most useful. Next steps for this mini project is to work out how to stop the programme creating a new username file each time a user registers and appends the username and password to the already created file.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2