IFTE function cmd and store cmd - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: IFTE function cmd and store cmd (/thread-11786.html) |
IFTE function cmd and store cmd - compsystems - 11-12-2018 05:57 PM Hello, I want to extract the "TRUE" values from an array [ false, false, true, true ] => [ true, true ] In the following code there is a problem when trying to store a variable within IFTE function cmd if I delete y: = or ▶y it works but the value of y is not updated PHP Code: #cas [Check] No errors in the program test_IFTE() [Enter] returns Quote:1,[0,0,true,true,true] ??? PHP Code: ifte( z[x] == true, y := concat( y, true ), nop ); test_IFTE() [Enter] returns Quote:"for([0,1,0,{ REQUEST: An alternative or simpler code with functions cmd and not block of structures? RE: IFTE function cmd and store cmd - toshk - 11-12-2018 09:17 PM try; EXECON("IF &1==true THEN L0:=concat(L0,true); L0:=L0[0]; ELSE nop; END;",[false,false,true,true,true,false,true]) RE: IFTE function cmd and store cmd - Didier Lachieze - 11-12-2018 09:25 PM Or simply : z:=[false,false,true,true,true,false,true] remove(false,z) RE: IFTE function cmd and store cmd - cyrille de brébisson - 11-13-2018 06:06 AM Hello, Be carefull, EXECON is a home command, not a cas command. Cyrille |