Jump to content

add two variables (results is null)


drousham

Recommended Posts

hello ,

I createed two variable , and i create a third one which culculate the sum of the two first variables

so when I do the sum , i have null value a ( because when a field of one variable is null then we can do the sum )

solution please :?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

If I'm understanding correctly you're trying to add the values contained in two separate variables (a) and (b) and storing it in a third ©.

 

To do this, I've found that each should be initialized to a value (zero for math) so that it isn't ever null. You cannot add a null to a value as far as I know. So, in the default value expression something like new Integer(0) should do the trick. I'd initialize all values for giggles, but at least a and b.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...