a estrutura basica eh...
if ... then elseif ... then else end
info
Grupo: Príncipe
Registrado: 19/08/10
Posts: 4k
Reputação: +1.1k
Gênero: Masculino

a estrutura basica eh...
if ... then elseif ... then else end
info
Grupo: Artesão
Registrado: 01/07/13
Posts: 106
Reputação: +3
Char no Tibia: Zearoulill Kred

a estrutura basica eh...
if ... then elseif ... then else end
Entendi, porém, se em vez de 2 Elseif dentro do IF, usar 3 IF encadeado... no final, usaremos 3 End?
info
Grupo: Príncipe
Registrado: 19/08/10
Posts: 4k
Reputação: +1.1k
Gênero: Masculino

if ... then
if ... then
if ... then
end
end
end
tb...
if ... then elseif ... then if ... then end end
e por ae vai... o importante eh lembrar q todo IF precisa de um END
Editado Julho 30 por Slicer
info
Grupo: Artesão
Registrado: 01/07/13
Posts: 106
Reputação: +3
Char no Tibia: Zearoulill Kred

if ... then if ... then if ... then end end endtb...
if ... then elseif ... then if ... then end ende por ae vai... o importante eh lembrar q todo IF precisa de um END
Vlw... sanou minha dúvida...
info
Grupo: Artesão
Registrado: 01/07/13
Posts: 106
Reputação: +3
Char no Tibia: Zearoulill Kred
Olá, estou aprendendo Script, sou um pouco novato, e vim sanar uma dúvida bem básica, é a seguinte:
Cada IF tem de ter seu End.. Ao colocar 1 ou mais Elseif dentro de um IF, é necessário mudar seu final? Ou Ainda deve deixar normalmente (Else, Return False, End, Return True, End)?
É apenas para desconfundir minha mente
. Vlw...