FALSE/pt
< FALSE
Jump to navigation
Jump to search
Revision as of 02:36, 31 December 2009 by Rezzor String (talk | contribs) (Created page with '{{LSL Constant |name=FALSE |type=integer |value=0 |desc=Constante de tipo integer (número inteiro) que armazena o valor ZERO.<br> '''FALSE=0'''.<br><br>''Usada em var...')
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer FALSE = 0;The integer constant FALSE has the value 0
Constante de tipo integer (número inteiro) que armazena o valor ZERO.
FALSE=0.
Usada em variávéis que representam valores booleanos.
Caveats
Examples
<lsl>integer bool; string boolStr; string BOOL_STR_FALSE = "FALSE (FALSO)"; string BOOL_STR_TRUE = "TRUE (VERDADEIRO)";
default{
state_entry(){ bool= TRUE; llSetText("Clique aqui para mudar o valor da varíavel booleana.",<1,1,1>,1); } touch_start(integer total_number) { if (bool){ // se bool é TRUE recebe FALSE bool = FALSE; boolStr = BOOL_STR_FALSE; }else{//senão recebe TRUE, pois é FALSE bool=TRUE; boolStr = BOOL_STR_TRUE; } string txt = "Você mudou o valor da variável booleana para "+ boolStr+"\nClique para mudar novamente."; llSay(0,txt); llSetText(txt,<1,1,1>,1); }
} </lsl>