Notifications
Clear all

[Closed] Keep it positive

How can i change a negative value to positive value
or keep values positive?

I want to do something like:
$.pos.x=myposX
if myposX<0 then
myposX=-1(myposX)

2 Replies

maybe something like this:

$.pos.x = abs $.pos.x