Subject: Re: BREAK and RETURN on the 48sx: where are they? Organization: Hewlett-Packard, Fort Collins, CO, USA Lines: 40 > As far as I can tell, the HP 48 doesn't provide any way to break out > of a loop in the middle (in C, break), and doesn't provide any way to > return from a function anywhere but the end. (in C, return). Yes, I > know that it's always possible to avoid using these if you put in an > extra test or flag, but sometimes they are convenient. In his book "HP-41 / HP-48 Translations", Bill Wickes mentions that the command << ... CONT ... >> breaks you out of a subroutine and back into the next level. I would think that you could include a local subroutine that would do your loop for you. For example, the program << . . << a b FOR c . . . IF ... THEN CONT END . . >> . -> loop . . loop EVAL . . >> may do it for you. ----- Regards Ray Depew IC's by Bill and Dave rrd@hpfitst1.hp.com