42s program question

Can someone tell me what function is being referred to when there is |-? in a program listing. I understand the append function |- But what is the question mark following it?



Are you speaking of programs here in the MoHPC Software Library?


yes. Actual line is.

18 |-?": > "

it is in a program called PRM? for evaluating if a number is prime and putting the factors in a 1xN matrix.


This same program uses the test:


I am not sure what this is supposed to be either. If I enter x=y? or x<>y?, the program returns an incorrect response.

Is there a list of programming conventions someplace for when the program step is represented by non-keyboard characters?

for example Rdn vs. Roll down, because there is no down arrow character?


Hi David,

The "|-" symbol represents the ALPHA append function: whatever is between quotation marks after the "|-" symbol will be appended to the right of the ALPHA register contents.

To get this append character into your program just activate ALPHA mode en hit ENTER key.

Note that in the line 18 |-?": > ", the question mark "?" is a typo?: it must not be entered, just enter 18 |-": > "

x!=y? is the x<>y? sometimes represented as x#y?: Is x different from y?

The "!=" (not equal to) comparison operator is fairly common in early "C" language machines.

Hope this helps.



Edited: 8 Aug 2012, 5:24 p.m.


Thanks Diego.

I figured the ? was a typo. I tried not equal to for != but the program didn't work. But I was able to figure out which inequality test does.

Thanks for the response!


Possibly Related Threads…
Thread Author Replies Views Last Post
  HP Prime: run a program in another program Davi Ribeiro de Oliveira 6 2,656 11-11-2013, 08:28 PM
Last Post: Davi Ribeiro de Oliveira
  Maximum number of program steps in HP-42S, 33S, and 35S? Walter B 3 1,618 12-18-2012, 03:44 PM
Last Post: Eric Smith
  42S program review Bill Colisch 4 1,458 04-25-2012, 05:58 PM
Last Post: Bill (Smithville, NJ)
  WP34S program question Mike Maiorana 12 3,166 04-05-2012, 03:09 AM
Last Post: Steve Simpkin
  A program for Normal Distribution on the 42s snaggs 5 1,877 09-22-2011, 02:19 PM
Last Post: Dieter
  Integration in a program on 42s? snaggs 2 1,091 09-19-2011, 11:28 AM
Last Post: snaggs
  42s questions and 42s vs 35s snaggs 13 5,249 09-19-2011, 02:44 AM
Last Post: snaggs
  HP 42S simulators on ipod touch--I answered my own question bill platt 5 1,765 12-29-2009, 04:58 PM
Last Post: Jake Schwartz
  TVM Program for the 42s Jeff Kearns 10 2,966 04-24-2009, 03:08 AM
Last Post: Karl Schneider
  HP-41 MCODE: Making an MCODE program call another MCODE program Geir Isene 10 2,800 01-13-2008, 05:58 AM
Last Post: Raymond Del Tondo

Forum Jump: