Browse Source

Updates docs/EXPRESSION.md

Auto commit by GitBook Editor
master
高杰 7 years ago
parent
commit
07916c87d7
  1. 6
      docs/EXPRESSION.md

6
docs/EXPRESSION.md

@ -49,5 +49,11 @@ The syntactic structure of if expression in UReport2 is shown in the figure belo
| if\(A1>1000\){return "normal value"}else{“low value";} | Judge whether the value of cell A1 is greater than 1,000. If yes, return to the string of “normal value”, otherwise return to the string of “low value”. It shall be noted that in if expression, several options of the keyword of return are available. Adding ';’at the end of the row also indicates it is elective. This design is provided mainly to match the habits in java and javascript program. |
| if\(A1>1000 and A1<20000\){ return "normal value:"+A1}else if\(A>20000 and A1<40000\){ return "High value" }else if\(A>20000 and A1<40000\){ return "ultra-high value"}else{ “low value"} | In this case, several combined conditions are added in the part of conditions, and elseif demands multiple judgements. |
# Case Expression

Loading…
Cancel
Save