You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
villares edited this page May 24, 2020
·
4 revisions
Nome
! (operador lógico NÃO)
Exemplos
boolean a =false;
if (!a) {
rect(30, 20, 50, 50);
}
a =true;
if (a) {
line(20, 10, 90, 80);
line(20, 80, 90, 10);
}
Descrição
Inverte o valor Booleano de uma expressão. Retorna verdadeiro ( true) se a expressão é falsa ( false) e retorna falso ( false) se a expressão é verdadeira ( true). No caso da expressão (a>b) ser avaliada como verdadeira , então !(a>b) será avaliada como falsa.