All pastes #365488 Raw Edit

Anonymous

public text v1 · immutable
#365488 ·published 2007-02-21 00:12 UTC
rendered paste body
function instancetest( float test1,float test2 )
{
if ${test1}<0
	{
	;echo "less to more1"
        test1:Set[${Math.Calc[${test1}*(-1)]}]
	}
if ${test2}<0
	{
	;echo "less to more2"
        test2:Set[${Math.Calc[${test2}*(-1)]}]
 	}
; now take the highest number, and subtract the lowest
echo "${Math.Calc[${test1}-${test2}]} ${Math.Calc[${test2}-${test1}]}"
if ${test1}>${test2}
	{
		if (${Math.Calc[${test1}-${test2}]}>50)
		{
		instance:Set[TRUE]
		Return "INSTANCE"
		
		}
	}
if ${test2}>${test1}
	{
		if (${Math.Calc[${test2}-${test1}]}>50)
		{
		instance:Set[TRUE]
		Return "INSTANCE"
		}
	}
}