Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2021 03:50 AM
Hi there
i need another 'else if ' conditon which is the opposite fo the below
that is the 'site does not contain the word telecom'
Thanks
Levino
else if (requestType == 'resignation' && marketChoice == 'Other' && site.toLowerCase().indexOf('telecom') > -1) {
g_form.setValue('request_template', 'EUC Task Fulfilment,RTM');
}
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2021 04:03 AM
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2021 04:03 AM
You can use this condition (indexOf returns -1 if the word is not found)
site.toLowerCase().indexOf('telecom') == -1
You can use this condition (indexOf returns -1 if the word is not found)
site.toLowerCase().indexOf('telecom') == -1