ID:265449
 
getrange(n,d)
if(!isnum(n)||!isnum(d))return
var{h;l}
if(n==d)return 0
if(n>d){h=n;l=d}
if(d>n){h=d;l=n}
return h-l

When I look at that, it seems like something's wrong...but I can't tell what.
getrange(n,d)
> if(!isnum(n)||!isnum(d))return
> var{h;l}
> if(n==d)return 0
> if(n>d){h=n;l=d}
> if(d>n){h=d;l=n}
> return h-l

When I look at that, it seems like something's wrong...but I can't tell what.

Uh are you tring to get the difference between the two numbers or something :P? If that is the case just do this

return abs(n-d)
In response to Theodis (#1)
Aw, I knew there was something easy like that. Thanks Theo.