Add generic 'SwitchCase' query term

Ticket details

ID: 107958
Description:

Query synthax: SwitchCase

Parameters users:

ReferenceQuery

- Query which will be executed and cases will be compared to its result.

- Case[followed by the rest of the expression, including the operator]   (Ex: Case="Some query":"Some result")

- You can define as many Cases as needed.  The process will stop at the first one that returns TRUE.

- The same alternative operators can be used when the query is used within a property.

- "&dift&" for "<>"

- "&gtoret&" for ">="

- "&ltoret&" for "<="

- "&gt&" for ">"

- "&lt&" for "<"

("=" does not have an alternative as it doesn't need one.)

 

- CaseElse

- When no case returns TRUE, CaseElse will be used. (Ex: CaseElse:"Some Value when nothing works")

 

Example:

SwitchCase(ReferenceQuery:GetRootObject.DisplayedLabel;
    Case="Project1":
        "Project 1";
        
    Case=Project2:
        "Not Project 1";
        
    Case&dift&"My Project":
        GetClass.Name;
        
    CaseElse:
        "Some Project"
)

State: pending
Priority: normal
Visibility: public

Technical Details

Details: <p>-</p>
 

SkyCAD Versions Information

Reference in version: V1.3.39
Completed in version: V1.3.44