Jump to content
Developer Wiki and Function Reference Links ×

CASE item OF


Recommended Posts

Item is an integer that can be 1,2,3,4,5 or 6

If I want items 1 through 3 and item 6 to do the same thing how can I write that?

I know I can use 1..3 for items 1 through 3, but how do I also include item 6 so i can condense the following code?

CASE item OF

1..3: BEGIN
    { do procedure A }
END;

4..5: BEGIN
   { do procedure B }
END;

6: BEGIN
   { do procedure A }
END;

END;

Thanks

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...