Jump to content

Optimization, alot of If's


 Share

Recommended Posts

Hello. Is there any performance difference at all between my two examples. When you got more like 50 cases instead of 2.

Ex 1.

CODE
If StringInStr($number,"!02") > 0 THEN Return 3

If StringInStr($number,"?10") > 0 THEN Return 3

Ex 2.

CODE
If StringInStr($number,"!02") > 0 OR StringInStr($number,"?10") > 0 THEN Return 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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