Если не Java

boolean state = false;

if (state != true) { //Boolean is false.
  System.out.println("No");
} else { //Boolean is true
  System.out.println("Yes");
}
pplew