File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ else {
371
371
The ` else ` branch is optional. Also, the curly brackets are optional when the branch defines just a single statement.
372
372
373
373
``` groovy linenums="1" title="snippet.nf"
374
- x = 1
374
+ x = 11
375
375
if (x > 10)
376
376
println 'Hello'
377
377
```
Original file line number Diff line number Diff line change @@ -254,11 +254,15 @@ else {
254
254
O ramo ` else ` é opcional. Além disso, as chaves são opcionais quando a ramificação define apenas uma única instrução.
255
255
256
256
``` groovy linenums="1"
257
- x = 1
257
+ x = 11
258
258
if (x > 10)
259
259
println 'Olá'
260
260
```
261
261
262
+ ``` console title="Output"
263
+ Olá
264
+ ```
265
+
262
266
!!! tip
263
267
264
268
`null`, strings vazias e coleções (mapas e listas) vazias são avaliadas como `false`.
You can’t perform that action at this time.
0 commit comments