Hello,

When i create an action "calculate a value", and if one of the input value is empty (no value at all), the rule fails to calculate anything - which isn't really a bug. But could it be possible to consider an empty value as a 0 ?

I am not sure if it would make things inconsistent for other users but it sounds OK to me.

Comments

mitchell’s picture

Version: 7.x-2.0-rc2 » 7.x-2.x-dev
Component: Rules Core » Rules Engine
Priority: Normal » Minor
Issue tags: +ux
mitchell’s picture

Status: Active » Closed (duplicate)

But could it be possible to consider an empty value as a 0 ?

I described a use for implementing this in #1540634: Calculate a value: support strings, lists, & files. There's probably more use cases to consider, so I encourage you to contribute your ideas and perspective.