Przeglądaj źródła

Updates docs/EXPRESSION.md

Auto commit by GitBook Editor
master
高杰 7 lat temu
rodzic
commit
1eb0dfd5f0
  1. 15
      docs/EXPRESSION.md
  2. BIN
      docs/images/caseexpr.png

15
docs/EXPRESSION.md

@ -51,6 +51,21 @@ The syntactic structure of if expression in UReport2 is shown in the figure belo
# Case Expression
Case expression is another form of conditional judgement provided by UReport2. It is similar to if judgement, but is simpler. Its syntactic structure is shown in the figure below:
![](/docs/images/caseexpr.png)
The case judgement should be put in case\{...}, followed by several conditions and the return value.
| Examples of case expression | Note |
| :--- | :--- |
| case{A1==100 return "normal ", A1>100 and A1<1000 return "normal value", A1>100 and A1<1000 return 'high'} | The two conditions have different values returned |
| case{A1==100 return "normal ", A1>100 and A1<1000 return "normal value", A1>100 and A1<1000 ‘high'} | There are also several options of the keyword of return in the case expression. |

BIN
docs/images/caseexpr.png

Binary file not shown.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 7.9 KiB

Ładowanie…
Anuluj
Zapisz