user
Task: Write an if-else statement to print "Hello world" if a variable is set to true.
Input: Boolean variable : x
Output:
assistant
if (x == true) {
  System.out.println("Hello world");
} else {
  // Do nothing
}