Local Variable loses some values

Local Variable loses some values

Hello everyone.

When I debug preparation all collums have values.

but when I debug the "Add" action, some values seem to be missing.

What am I missing? This has been bugging me for hours.

thank you very much
Cristóvão Vaz
Hi Cristovao,

That looks like you are being "tricked" by the optimizer.
In fact the values are not there, but that is because you don't actually use those two values for anything.

If you add some logic that actually requires them (assign to something or write them in screen), they will not be optimized and it should have the correct value.

João Rosado
understood. thank you João.