Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 23 additions & 14 deletions Language/Structure/Comparison Operators/greaterThan.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,30 @@ subCategories: [ "Comparison Operators" ]



= > Greater than
= > Maggiore di


// OVERVIEW SECTION STARTS
[#overview]
--

[float]
=== Description
Compares the variable on the left with the value or variable on the right of the operator. Returns true when the operand on the left is greater (bigger) than the operand on the right.
=== Descrizione
Confronta la variabile a sinistra con il valore o la variabile a destra dell'operatore. Restituisce vero quando l'operando a sinistra è maggiore (più grande) dell'operando a destra.
[%hardbreaks]


[float]
=== Syntax
=== Sintassi
[source,arduino]
----
x > y; // is true if x is bigger than y and it is false if x is equal or smaller than y
x > y; // è vero se x è più grande di y ed è falso se x è uguale o minore di y
----

[float]
=== Parameters
`x`: variable. *Allowed data types:* int, float, double, byte, short, long +
`y`: variable or constant. *Allowed data types:* int, float, double, byte, short, long
=== Parametri
`x`: variabile. *Tipi di dati consentiti:* int, float, double, byte, short, long +
`y`: variabile o costante. *Tipi di dati consentiti:* int, float, double, byte, short, long

--
// OVERVIEW SECTION ENDS
Expand All @@ -44,20 +44,29 @@ x > y; // is true if x is bigger than y and it is false if x is equal or small
--

[float]
=== Example Code
=== Codice di esempio

[source,arduino]
----
if (x>y) // tests if x is greater (bigger) than y
if (x>y) // verifica se x è maggiore (più grande) di y
{
// do something only if the comparison result is true
// esegue qualcosa solo se il risultato del confronto è vero
}
----
[%hardbreaks]

--
// HOW TO USE SECTION ENDS



// SEE ALSO SECTION BEGINS
[#see_also]
--

[float]
=== Notes and Warnings
Positive numbers are greater than negative numbers.
=== Note e Avvertimenti
I numeri positivi sono maggiori dei numeri negativi.
[%hardbreaks]

--
Expand All @@ -71,7 +80,7 @@ Positive numbers are greater than negative numbers.
--

[float]
=== See also
=== Vedi anche

[role="language"]

Expand Down