Keep Getting Out "0" Instead of Null?
Greetings,
I have a datatype that I want to have the ability to pass null value into. This datatype is all strings, but I use converter flows to get some necessary fields into INTs. When I pass-in the Null values to these INT fields, they come out as "0" instead. Is this a bug?
Comments
-
Hello!
What you are seeing is intended behavior by Decisions. Decisions converter flows that convert to INTs are designed to pass-out "0" when they see a null value. There are a few way you can get your desired behavior, however:
1. Create your own converter flow. Our documentation below outlines this method.
https://documentation.decisions.com/docs/using-converter-flows
2. Add a statement rule. This can be configured to output NULL INT values if the recognized string is NULL, such as shown in the screenshot below:
3. Create a Truth Table. This maybe the least-performant method if you only need to check one value, but it may have utility if used for multiple value. The logic is similar to the statement rule above, where you can pass-out a Null INT value if the inputted string is Null. Documentation on using these can be found below:
https://documentation.decisions.com/docs/creating-a-truth-table
I hope this helps!
-Gregory
Howdy, Stranger!
Categories
- 4.1K All Categories
- 60 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 260 Administration
- 212 Portal
- 489 General Q & A
- 693 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 219 Integrations
- 28 Multi-Tenant
- 27 SDK
- 76 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 66 Lunch And Learn Questions