Skip to main content
Nintex Community Menu Bar
Question

ReferenceError: Invalid left-hand side expression in postfix operation

  • Jul 10, 2024 4:06 PM UTC
  • 2 replies
  • 123 views
  • Translate All

Forum|alt.badge.img+13

Hi,

I started seeing this error often , and upon looking into it, it looks like a problem with formula handling negative numbers

Let’s say i have 2 field i want to add up

Field A value = 1000
Field B value = -28

And i have a formula {{fieldA}} - {{fieldB}}, it will return this error as Field B is a negative

My problem is those field would contain 95% positive values, but in some cases , as intended, the number would be negative

In the example above i would expect the result to be 1028

Is there any way around that error, or a way to hide this error message for this case only?

Thx


2 replies

Forum|alt.badge.img+7

Dave,

Try putting {{fieldA}} - ({{fieldB}}) and see if that gets rid of the error message.

Thanks!
Amy

Translate

Forum|alt.badge.img+13
  • Author
  • Scholar
  • Jul 10, 2024 4:22 PM UTC

Thank you Amy, that worked!

Translate