Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

String Comparison UDF

$
0
0

Hi Guys!

 

Do we have best practices done in creating a UDF?

 

I have a UDF to compare a string.

Which is better?

 

UDF 1:
if (var1 != null && var1 != "") vs if (var1 != null && !var1.isEmpty()

 

UDF 2:
if (var1 == STRING)) vs if (var1.equals("STRING"))

 

Thanks,
Neil


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>