2 condition dans un seul if

psyckan Messages postés 135 Date d'inscription vendredi 27 août 2004 Statut Membre Dernière intervention 8 mai 2010 - 24 juin 2005 à 19:29
psyckan Messages postés 135 Date d'inscription vendredi 27 août 2004 Statut Membre Dernière intervention 8 mai 2010 - 25 juin 2005 à 11:14
Bonjour

Voila je voudrais savoir comment mettre 2 condition dans 1 seul "If"

mes condition :

($me isop $chan)

($nick !isop $chan)

Je ne sait pas comment les separer soit juste avec un espace ou avec un & ou |

Merci

3 réponses

fjxokt Messages postés 840 Date d'inscription vendredi 28 janvier 2005 Statut Membre Dernière intervention 25 février 2009 1
24 juin 2005 à 19:34
if ($me isop $chan && $nick !isop $chan)

if ($me isop $chan || $nick !isop $chan)
0
Hades53 Messages postés 231 Date d'inscription mercredi 12 février 2003 Statut Membre Dernière intervention 7 juillet 2009
24 juin 2005 à 19:34
if ($me isop $chan) && ($nick !isop $chan)



Le && exptime un ET, || exprime un OU.



& et | c'est pour la manipulatio binaire:

&= Manipulation de bit, ET binaire

|= Manipulation de bit, OU binaire
0
psyckan Messages postés 135 Date d'inscription vendredi 27 août 2004 Statut Membre Dernière intervention 8 mai 2010
25 juin 2005 à 11:14
Merci bien
0
Rejoignez-nous