Re: Basic Programing Question


[Prev][Next][Index][Thread]

Re: Basic Programing Question



Compound inequalities can be accomplished in a couple ways. A
straightforward way is with "and":

If (70<T) and (T<77)

is one way to check that T is between 70 and 77.  You can find "and" under
the "Test" menu, "Logic" submenu (or in the catalog, of course).

If (70<T) * (T<77)

also works because if T is between 70 and 77, both of these expressions
evaluate to 1, and so the product evaluates to 1, which is what the 83 Plus
interprets as "true", whereas if either of them is false, the product will
evaluate to 0.


Norm Krumpe

******************************************************************
* To UNSUBSCRIBE, send an email TO: listserv@lists.ppp.ti.com
* with a message (not the subject) that reads SIGNOFF CALC-TI
*
* Archives at http://peach.ease.lsoft.com/archives/calc-ti.html
******************************************************************


References: