Problem with comparing negative numbers?

Zvonimir Jericevic <[email protected]>
Newsgroups gmane.comp.gnu.enterprise.general
Message-ID <[email protected]>
Hi,

I created trigger which checks if the value of field is less or 
greater then -5, and accordingly print message.

Problem is in results: I get that -1 < -5 and -6 > -5, and -10 < -5 and 0 > -5.

This is trigger:

<trigger type="POST-FOCUSOUT" name="Trigger3">##
## entTe.Pre-FocusOut (Entry-Level Trigger)
##
unos = blkBlock1.fldTe



if unos&lt;-5: blkBlock1.UnboundField2.set('less then -5')
else:blkK_d.UnboundField2.set('greater then -5')
return

</trigger>

Is anybody know where is mistake?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.