Jump to content

If Statements


someguy567

Recommended Posts

1 minute ago, Charlotte said:

I think too many if statements does not really affect performance if they get executed. Alternative would be switch-case.

yeah as charlotte said, use switch statements which will ahve cases - if ur switch matches the case it will then return xy or whatever ur case was.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...