Previous Home Next
X = 10;
Y = 250;
If (X > 25 || Y > 200) {
Z = 5;
}
Else {
Z=0;
/ After executing the cord/code above, the value of the Z becomes 5
Completely support
Action name
Operator (non-equivalence Opposition of equivalent operator is tested. When formula 1 is equal to formula 2, the result is the
false.
Operator. When dividing formula 1 with formula 2, surplus is calculated.
X %= Y
}
(Logical NOT)
Previous Home Next
Operator (logic Pool
value of variable or
formula it reverses.
Completely support
Action name Explanation
Support
&& (logical AND)
Operator (logic Formula 1 is appraised, when formula 1
is the true, formula 2 is appraised. If as for the result,
appraisal of both system is the true, it is the true, if
appraisal of each system is the false, it is the false.
With the following example, && operator is used in if
statement.
Because appraisal of both system is the true, the final
returns become the true.
X = 30;
Y = 250;
If (X > 25 && Y > 200) {
Z = 5;
}
Else {
} / After executing with the cord/code above, the value of
the Z becomes 5
Completely support
(Condition
Operator (condition Formula 1 is appraised, when
formula 1 is the true, value of formula 2 is returned.
Case it is the other than that, apply the value of formula
3 it does.
With the following example, because appraisal of
formula 1 is the true, value of variable X is substituted
to variable Z.
X = 5;
Comentarios a estos manuales