Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: How to use string operations in XSJS

$
0
0

Hi,

 

You can use the indexOf() method to check if one string contains another substring, e.g.,

 

var s = "abc";

if (s.indexOf("b") > -1) {

//contains

...

} else {

//does not contain

...

}

 

It's the standard method of String in JavaScript which is not included in the XSJS API JSDoc: Index

 

Best regards,

Wenjun


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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