Hi
Does anyone know why the first value would be invalid.
Thanks for any help
StoredValues
-
- Posts: 19
- Joined: Mon Dec 20, 2021 6:54 am
You do not have the required permissions to view the files attached to this post.
What value did P140 contain before you subtracted one from it?Stockdalebet wrote: ↑Tue Mar 01, 2022 10:46 amHi
Does anyone know why the first value would be invalid.
Thanks for any help
If it was the first time you used it I don't think SVs start with a value of zero, you may need to initialise it my placing zero (or a number of your choice) before arithmetic operations.
-
- Posts: 19
- Joined: Mon Dec 20, 2021 6:54 am
Thank you I see its like the divide by 0 errorDerek27 wrote: ↑Tue Mar 01, 2022 10:52 amWhat value did P140 contain before you subtracted one from it?Stockdalebet wrote: ↑Tue Mar 01, 2022 10:46 amHi
Does anyone know why the first value would be invalid.
Thanks for any help
If it was the first time you used it I don't think SVs start with a value of zero, you may need to initialise it my placing zero (or a number of your choice) before arithmetic operations.
It's not like the divide by zero error as you're subtracting, the problem is there's no value in the SV to subtract from. There's no need to initialize SVs if you immediately put a value in it, but if I want to start with zero and increment I usually have a rule that runs at the start setting such SVs to zero.Stockdalebet wrote: ↑Tue Mar 01, 2022 12:50 pmThank you I see its like the divide by 0 errorDerek27 wrote: ↑Tue Mar 01, 2022 10:52 amWhat value did P140 contain before you subtracted one from it?Stockdalebet wrote: ↑Tue Mar 01, 2022 10:46 amHi
Does anyone know why the first value would be invalid.
Thanks for any help
If it was the first time you used it I don't think SVs start with a value of zero, you may need to initialise it my placing zero (or a number of your choice) before arithmetic operations.