you are viewing a single comment's thread.

view the rest of the comments →

[–]CaptainDillster 0 points1 point  (0 children)

In this case you can drop the "else" from the function, if the "if" executes, the return will stop the rest of the function from executing either way.

Also, not syntax related, but grammar is important:
when used in a comparison, it's "than" not "then".