How to check the value exists in data item which is of number data type?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-12-18 07:03 PM
Hi ,
Question :How to check if the value exists in data item (number data type) or not?
Please note:-
1)[Data item ] "" - is working incase if the data item is of text data type.
2) when the data item is number data type it throwing an internal exception "cannot perform when the left hand value is empty" Internal : Cannot perform operation when the left-hand value is empty
Any suggestion?
Regards,
Dilip K
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-12-18 11:15 PM
Hi,
In my opinion, best practice is to initialize all your number data items (e.g.- zero) and then check that [Number item]>0. Would that work for your situation?
Respectfully,
Dave
Dave Morris, 3Ci at Southern Company
Dave Morris, 3Ci at Southern Company
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-12-18 07:19 PM
There is an in-built logic function IsNumber() in Blue Prism. It returns true if the input is a number.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
13-12-18 07:55 AM
Hahahahaha! Good point, Irina! I'm *facepalming* over here. Can't believe I forgot about the Is functions.
Dave Morris, 3Ci at Southern Company
Dave Morris, 3Ci at Southern Company
