• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 301
  • Last Modified:

Which is quicker?

Which of these is quicker ?

"Iif" (inline if) or "If.. then... End If" ???
Speed is cruicial in the routine I need them in...
0
lbowers
Asked:
lbowers
1 Solution
 
KJHDI12Commented:
I did some calculations and ran them in 1000000 loops and got this result:

  If then else end if:        1492ms
  Iif                         9500ms

I used the ARTimer control to time it. It's free and you can download it at www.download.com.

Mr. Fixit

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now