How Come?

Terry Pickering pickering@myself.com
Tue, 08 Dec 1998 12:49:41 -0800


I know this has probably been explained before but.......


Can someone explain in QUICK the difference in the following two syntax examples, and which is the "better" way to code.



IF FIELD-AMT = 0 

   THEN ....


IF 0 = FIELD-AMT

   THEN ....


The reason I'm asking, is because when I code, I normally use the first method and it usually works just fine. But if I try to use the following syntax, it doesn't work unless I put the field name on the right of the equation.


IF FIELD-AMT - 10 = 0

   THEN ....

(does not work)


IF 0 = FIELD-AMT - 10

   THEN ....

(works just fine)




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

<bold><bigger>Terry Pickering        Consultant Extraordinare

</bigger></bold>Monday and Friday        Tuesday - Thursday

Portland                 Eugene

(503) 245-7178           (541) 687-3416

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.