Why does a space break my calculation?

Hi everyone,

I’m working on a form that uses a simple calculation between two number fields. It works fine unless I accidentally put a space in the formula then the whole thing breaks. For example, if I write (${age} + ${years}) without any space it works, but if I add a space like (${age} + ${years}), it just returns blank.

Is that expected behavior? Or am I missing something obvious?

Thanks for any help!

.

These guys https://www.concretesrichmondva.com/ really helpful reminded me how small details, like clean formatting or prep, make all the difference.

Welcome to the community, @WebbyRuth! I don’t think the space should make any difference to the calculation. FYR …

C1 does not have a space while C2 has a space.

This is the output:

Here is the reference XLSForm if you wish to test the same:

Sum.xlsx (9.5 KB)