[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUe] Problem with comparing negative numbers?
From: |
Zvonimir Jericevic |
Subject: |
[GNUe] Problem with comparing negative numbers? |
Date: |
Fri, 25 Nov 2005 13:17:33 +0100 |
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<-5: blkBlock1.UnboundField2.set('less then -5')
else:blkK_d.UnboundField2.set('greater then -5')
return
</trigger>
Is anybody know where is mistake?
- [GNUe] Problem with comparing negative numbers?,
Zvonimir Jericevic <=