You have to login in order to post a reply to this topic.

1 reply [Last post]
JosephB
User offline. Last seen 5 hours 10 min ago. Offline
Joined: 11/13/2009
Posts: 110

Requesting the addition of a "Case Statement" - Action (to supplement the existing IF, End-If Action), for situations where you have repetitive selection value tests against the same variable.  

Benefit of new Case Statement Action: 

..... to avoid selection tests with excessive nesting levels that would be required with the existing IF, En-_If Action  -- or -- need to use goto to have less indented nesting levels if one used the If,End-If Action.

JosephB
User offline. Last seen 5 hours 10 min ago. Offline
Joined: 11/13/2009
Posts: 110
Re: Case Statement Action

Revised,

 

Requesting either a "Linear IF - Action" or a "Case Statement - Action" which ever is easier to implement.

 

Purpose:

Supplement the existing IF, End-If Action), for situations where you have repetitive selection value tests against the same variable.  

Benefit of new Case Statement Action: 

..... to avoid selection tests with excessive nesting levels that would be required with the existing IF, En-_If Action  -- or -- need to use goto to have less indented nesting levels if one used the If,End-If Action.

 

So a "Case Statement - Action" or a "Linear IF - Action", would work nicely with repetitive multiple selection value testing against the same variable.

 

---- By "Linear IF Action", I am referring to the below structure:

 

If       Var-A = 1
         Action(s)
ElseIf Var_A = 2
         Actions(s)
ElseIf Var-A = 5
         Actions(s)
Else
    Actions(s)
End If