Post Reply 
an HP question...
10-23-2017, 07:44 AM
Post: #5
RE: an HP question...
(10-23-2017 07:13 AM)webmasterpdx Wrote:  what remaining tests?
e.g. you can have:

if (x==1) then ... return; end;
if (x==2) then ... return; end;
if (x==3) then ... return; end;
...default...
return; end;

This is assuming the case statement is the last one before the return.
If you have some instructions after the case:

case:
if (x==1) then ... end;
if (x==2) then ... end;
if (x==3) then ... end;
default: ...
end;
<some more instructions>
return;

then if x==2 the execution will go directly from the end of the if (x==2) sequence to <some more instructions>, skipping the remaining if and default.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
an HP question... - webmasterpdx - 10-23-2017, 03:57 AM
RE: an HP question... - Arno K - 10-23-2017, 06:35 AM
RE: an HP question... - webmasterpdx - 10-23-2017, 07:13 AM
RE: an HP question... - Didier Lachieze - 10-23-2017 07:44 AM
RE: an HP question... - Arno K - 10-23-2017, 07:37 AM
RE: an HP question... - webmasterpdx - 10-23-2017, 08:06 AM
RE: an HP question... - Gilles59 - 10-23-2017, 12:16 PM
RE: an HP question... - Eddie W. Shore - 10-23-2017, 12:36 PM
RE: an HP question... - webmasterpdx - 10-23-2017, 10:26 PM
RE: an HP question... - webmasterpdx - 10-24-2017, 12:58 AM
RE: an HP question... - webmasterpdx - 10-24-2017, 01:12 AM
RE: an HP question... - webmasterpdx - 10-24-2017, 01:20 AM
RE: an HP question... - webmasterpdx - 10-24-2017, 01:38 AM
RE: an HP question... - webmasterpdx - 10-24-2017, 02:09 AM
RE: an HP question... - webmasterpdx - 10-24-2017, 02:16 AM
RE: an HP question... - Joe Horn - 10-24-2017, 06:21 AM



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