Ticket details
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 "<>"
- ">oret&" for ">="
- "<oret&" for "<="
- ">&" for ">"
- "<&" 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"
)