Post Reply 
Input a default value
03-19-2015, 08:38 PM (This post was last modified: 03-19-2015 08:59 PM by salvomic.)
Post: #11
RE: Input a default value
(03-19-2015 08:29 PM)Didier Lachieze Wrote:  What about something like:
Code:
REPEAT
  INPUT... 
UNTIL (aleph >= 1);

thank you Didier!
In fact I thing to do so (also with CASE and some IF's):
Code:

control:=1;
REPEAT
INPUT ...;  // aleph and a few others vars
CASE
IF (aleph<1) THEN ...; control:=1; END;
IF ... THEN ...; control:=1; END;
IF ...
DEFAULT control:=0; END;
END; // case
UNTIL control <1;
...

it works!

However there is a problem: if the "IF control" repeats the cycle, the value of every variables will be reset: there is a way to maintain the right ones when the input is newly showed?

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Input a default value - salvomic - 03-17-2015, 08:08 PM
RE: Input a default value - Han - 03-17-2015, 08:28 PM
RE: Input a default value - salvomic - 03-17-2015, 08:42 PM
RE: Input a default value - salvomic - 03-18-2015, 08:37 AM
RE: Input a default value - Tim Wessman - 03-18-2015, 02:51 PM
RE: Input a default value - salvomic - 03-18-2015, 02:54 PM
RE: Input a default value - Tyann - 03-18-2015, 05:28 PM
RE: Input a default value - salvomic - 03-19-2015, 06:49 PM
RE: Input a default value - salvomic - 03-19-2015 08:38 PM
RE: Input a default value - salvomic - 03-19-2015, 08:45 PM



User(s) browsing this thread: 2 Guest(s)