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 {
371371The ` else ` branch is optional. Also, the curly brackets are optional when the branch defines just a single statement.
372372
373373``` groovy linenums="1" title="snippet.nf"
374- x = 1
374+ x = 11
375375if (x > 10)
376376 println 'Hello'
377377```
Original file line number Diff line number Diff line change @@ -254,11 +254,15 @@ else {
254254O ramo ` else ` é opcional. Além disso, as chaves são opcionais quando a ramificação define apenas uma única instrução.
255255
256256``` groovy linenums="1"
257- x = 1
257+ x = 11
258258if (x > 10)
259259 println 'Olá'
260260```
261261
262+ ``` console title="Output"
263+ Olá
264+ ```
265+
262266!!! tip
263267
264268 `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