Basically I want a code like this:

if newval  >  -  then
	whatever code
end

if newval <  +  then
	whatever code
end

Just that i Don't know how to write it

4 comments

2

What does moneyin() and moneyout() do? Can you explain more clearly what you're trying to accomplish here?

0

I've updated the question

1

Does it display any errors?

0

Nope