devxlogo

A Fast Empty String Compare

A Fast Empty String Compare

It’s faster to retrieve the length of a string and compare the value to zero than it is to compare it to an empty string. This is especially useful in loops. But be careful of the simplified method when used in multiple expressions.
Old method:

          If Text =

devx-admin

Share the Post: