Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site watdaisy.UUCP Path: utzoo!watmath!watdaisy!ndiamond From: ndiamond@watdaisy.UUCP (Norman Diamond) Newsgroups: net.lang Subject: re: IF KICK-BACK GREATER THAN... Message-ID: <6805@watdaisy.UUCP> Date: Sun, 9-Dec-84 10:32:50 EST Article-I.D.: watdaisy.6805 Posted: Sun Dec 9 10:32:50 1984 Date-Received: Mon, 10-Dec-84 02:30:55 EST References: <8900017@uiucdcsb.UUCP>, <223@ic-cs.UUCP> Organization: U of Waterloo, Ontario Lines: 18 > In Pascal you can write IF KICK-BACK GREATER THAN 10 AND LESS THAN 100 THEN > > as > IF Kick_back IN [10..100] THEN > > or how about > IF Kick_back IN [10,20,30,40,50] THEN > if you only want multiples of 10 ? True, but it requires an order of magnitude more CPU time than two comparisons. -- Norman Diamond UUCP: {decvax|utzoo|ihnp4|allegra|clyde}!watmath!watdaisy!ndiamond CSNET: ndiamond%watdaisy@waterloo.csnet ARPA: ndiamond%watdaisy%waterloo.csnet@csnet-relay.arpa "Opinions are those of the keyboard, and do not reflect on me or higher-ups."