From 2c2df5ea01eb5cd8b9ea226b2869337e59c5fe3e Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Thu, 11 Feb 2021 14:50:24 +0100 Subject: unslug pt-pt: move --- files/pt-pt/glossary/boolean/index.html | 51 +++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 files/pt-pt/glossary/boolean/index.html (limited to 'files/pt-pt/glossary/boolean') diff --git a/files/pt-pt/glossary/boolean/index.html b/files/pt-pt/glossary/boolean/index.html new file mode 100644 index 0000000000..dc4c3bfc21 --- /dev/null +++ b/files/pt-pt/glossary/boolean/index.html @@ -0,0 +1,51 @@ +--- +title: Booliano +slug: Glossário/booliano +tags: + - Booleano + - Booliano + - Glossário + - JavaScript + - Linguagens de Programação + - Progração Scripting + - tipos de dados +translation_of: Glossary/Boolean +--- +

Na informática, um booliano é um tipo de dados lógico que pode ter apenas os valores verdadeiro ou falso. Por exemplo, em JavaScript, as condicionais de boolianos são frequentemente utilizadas ​​para decidir quais as secções de código a serem executadas (tal como em declarações if) ou repetir (tal como repetições for).

+ +
/* JavaScript if statement */
+if (boolean conditional) {
+   // code to execute if the conditional is true
+}
+
+if (boolean conditional) {
+  console.log("boolean conditional resolved to true");
+} else {
+  console.log("boolean conditional resolved to false");
+}
+
+
+/* JavaScript for loop */
+for (control variable; boolean conditional; counter) {
+  // code to execute repeatedly if the conditional is true
+}
+
+for (var i=0; i < 4; i++) {
+  console.log("I print only when the boolean conditional is true");
+}
+
+ +

Saiba mais

+ +

Conhecimento geral

+ + + +

Referência técnica

+ + -- cgit v1.2.3-54-g00ecf