Svidos29
7th May 2018, 13:58
Hi all,

i have a variable that if gets a negative value, have to become 0.
How can i make it possible?

Thanks in advance

mark_h
7th May 2018, 14:20
I think I am missing something. Are there more details?

Not sure:

if some.var <0 then
some.var = 0
endif

is probably what you are looking for.

Svidos29
7th May 2018, 15:31
Thanks a lot, i think there was some specific function, instead is very simple...

Thanks again :)