if($controle == "Block" OR controle == "Cancel") {
assim n foi...

vlw!
Posted 17/02/2006, 15:25
if($controle == "Block" OR controle == "Cancel") {
Posted 17/02/2006, 15:30
Posted 17/02/2006, 15:33
<? if( ($controle == "Block") || ($controle == "Cancel") ) { // comandos } ?>
Posted 17/02/2006, 16:08
A segunda variável da segunda condição não continha o crifrão $.ae pessu.. como faço um if com 2 condicoes?
if($controle == "Block" OR controle == "Cancel") {
assim n foi...
vlw!
Posted 18/02/2006, 16:32
Posted 18/02/2006, 16:34
Posted 18/02/2006, 16:36
Posted 18/02/2006, 16:42
$var = "Eclesiastes";
if ($var == "Eclesiastes") {
<?php $nome = "Eclesiastes"; // Verificando se é uma string // Se for string irá retornar o valor // booleano TRUE $var = is_string($nome); $var2 = true; if ($var === $var2) { print "TRUE!"; } ?>
Posted 18/02/2006, 16:43
Posted 18/02/2006, 16:47
Posted 18/02/2006, 18:28
Edição feita por: Goku Jr, 18/02/2006, 18:29.
Posted 19/02/2006, 10:48
2º o correto seria : -> OR = OU
if ( ($variavel == "nome") OR ($variavel2 == "nome2") ) {
// acao
}
if($var == "nome" OR $var2 == "nome2")
if($var1 == "nome" OR ($var2 == "nome2" AND $email == "email"))
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)