Comment tester une variable booléenne ?
Un booléen se teste directement, sans = vrai :
actif est un booléen
actif vaut vrai
si actif alors
affiche 'Système actif'
fin si
si non actif alors
affiche 'Système arrêté'
fin siUn booléen se teste directement, sans = vrai :
actif est un booléen
actif vaut vrai
si actif alors
affiche 'Système actif'
fin si
si non actif alors
affiche 'Système arrêté'
fin si