Table of contents
Expand |
---|
title | Click here to expand the table of contents |
---|
|
Table of Contents |
---|
minLevel | 1 |
---|
maxLevel | 7 |
---|
exclude | ^Оглавление$ |
---|
|
|
...
As a condition for the exit, you can use not only hard-coded text, but also variables:
...
Default
If no matches are found, the action will be released on the Default branch.
...
Expand |
---|
title | For those who want to work with C # code |
---|
|
You can implement similar functionality via C# C# code (C sharp code .net) Sample code for the option above Code Block |
---|
| string switch_var = project.Variables ["switch_test"]. Value;
switch (switch_var) {
case "A":
project.SendInfoToLog ("The variable contains the letter A", true);
break;
case "B":
project.SendInfoToLog ("The variable contains the letter B", true);
break;
case "C":
project.SendInfoToLog ("The variable contains the letter C", true);
break;
case "D":
project.SendInfoToLog ("The variable contains the letter B", true);
break;
case "E":
project.SendInfoToLog ("The variable contains the letter E", true);
break;
default:
project.SendInfoToLog ("Necessary match was not found, variable value:" + project.Variables ["switch_test"]. Value, true);
break;
} |
|
Useful links
...