Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined vs not set in computed_by #137

Open
cbelsole opened this issue Oct 25, 2018 · 1 comment
Open

undefined vs not set in computed_by #137

cbelsole opened this issue Oct 25, 2018 · 1 comment
Assignees

Comments

@cbelsole
Copy link
Contributor

cbelsole commented Oct 25, 2018

15:TotalDebt number[2] computed_by { 
  return if(QualifyingMonthlyPitia != undefined, QualifyingMonthlyPitia, 0) + 
         if(OtherMonthlyDebts != undefined, OtherMonthlyDebts, 0) 
}

This returns undefined if the value was never originally set. Once the value is set to undefined the != undefined check works as expected.

@alexandrinaw
Copy link
Contributor

I wasn't able to reproduce this :/ maybe we can come up with a test that demonstrates this

@cbelsole cbelsole self-assigned this Oct 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants