Checking conditions [IF ... THEN ... ELSE] performance
|
09-15-2015, 05:04 AM
Post: #7
|
|||
|
|||
RE: Checking conditions [IF ... THEN ... ELSE] performance
(09-14-2015 09:01 PM)komame Wrote: Generaly each condition has two parts: before the operator and after the operator. UBASIC both does and doesn't! It has two allowed syntaxes, infix and prefix, and they work differently: Infix: A and B --> both expressions always get evaluated. Prefix: and(A,B,C,...) --> evaluating from left to right, as soon as one of the arguments evaluates to 0, all subsequent arguments are skipped (unevaluated) and 0 is returned immediately. Unfortunately HP-71 BASIC's "and" operator only has infix notation, and it always evaluates both expressions. <0|ɸ|0> -Joe- |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Checking conditions [IF ... THEN ... ELSE] performance - komame - 09-14-2015, 06:24 PM
RE: Checking conditions [IF ... THEN ... ELSE] performance - Joe Horn - 09-14-2015, 07:21 PM
RE: Checking conditions [IF ... THEN ... ELSE] performance - Tim Wessman - 09-14-2015, 07:36 PM
RE: Checking conditions [IF ... THEN ... ELSE] performance - komame - 09-14-2015, 09:01 PM
RE: Checking conditions [IF ... THEN ... ELSE] performance - primer - 09-14-2015, 09:24 PM
RE: Checking conditions [IF ... THEN ... ELSE] performance - Joe Horn - 09-15-2015 05:04 AM
RE: Checking conditions [IF ... THEN ... ELSE] performance - roadrunner - 09-14-2015, 10:06 PM
RE: Checking conditions [IF ... THEN ... ELSE] performance - cyrille de brébisson - 09-15-2015, 05:25 AM
RE: Checking conditions [IF ... THEN ... ELSE] performance - StephenG1CMZ - 09-15-2015, 09:42 AM
|
User(s) browsing this thread: 1 Guest(s)