- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-06-2023 09:27 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-06-2023 10:56 PM
Please close this question by marking my response as correct solution so that it will be helpful for future users to find correct solution.
Happy Learning 🙂
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-06-2023 09:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-06-2023 10:05 PM
Hi @mounika32 ,
Try Below script -
var chatHistory = "Line 1\nLine 2\nLine 3\nLine 4";
var lines = chatHistory.split('\n');
var lineCount = lines.length;
gs.info(lineCount);
Thanks and Regards,
Rahul

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-06-2023 10:45 PM
Hi,
I hope answer provided on another question resolved your issue:
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-06-2023 10:50 PM
@Anil Lande , yes

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-06-2023 10:56 PM
Please close this question by marking my response as correct solution so that it will be helpful for future users to find correct solution.
Happy Learning 🙂
Thanks
Anil Lande