We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

indexOf not working as expected?

gokulraj
Tera Expert

How to compare the string with exact match?

myString = "networkgroup@abc.com";

"network@abc.com" also satifying this condtion

Is there a way to find the exact string insted of indexOF()

16 REPLIES 16

I want to compare everything inside''. but it will be awesome I am able to check one more condition like before '' it contains "Device" string or not

like this

Device 'EVMTMW-WOZ' item not found/n Device 'TMAQW-WOZ' does not exist\n active 'directory' of device 'QASDTYQ-IOK'

Yes. That can be done. But what I am asking is if you only want the first instance of that format or for all instances in the string you have provided?