Page 1 of 1

blank persistent variable

Posted: Sun Sep 04, 2022 10:48 am
by zwp
Hey all,
I have one short question. Is:

Code: Select all

var float t_stop = na
the same as

Code: Select all

var t_stop = 0.0
if not, please can you explain the difference in your answer.
Thanks upfront.

Re: blank persistent variable

Posted: Sun Oct 16, 2022 11:09 pm
by purplemint22
Yes and no. They are both same data type, but var t_stop = 0.0 contains an actual value and var float t_stop = na does not. So you can see the difference when you try to plot the variables by themselves.

var float t_stop = na will display an empty box, and var t_stop = 0.0 will display a horizontal line at 0.0.

Re: blank persistent variable

Posted: Wed Oct 19, 2022 7:41 am
by zwp
Thank you!