Hey guys. Maybe someone can help me with this, I can't wrap my head around. As there is no "AND" command to use as in EXCEL. I am unable to solve an issue as I can't figure it out how it is possible to do something in TI BASIC. In excel I could figure it out but I am just stuck at reading wiki here.

What I would like to do is:

Variables X/Y.

If X and Y is positive subtract highest value from lower to have a positive answer.

If X and Y is negative subtract highest value from lower. -10-(-8)=-2

IF X is positive and Y is negative (And Vice versa) then add both together and treat both as being positive. X: -10 Y: 8 =18

Is there any way to do it?