Checks whether the input is True or False and executes the corresponding output.