Imagine a light switch. It can be on or off. A boolean stores the same kind of two-choice information.
is_logged_in = TrueLine-by-line explanation
is_logged_innames a yes-or-no fact.=stores a value.Truemeans the answer is yes.
has_permission = FalseLine-by-line explanation
has_permissionnames another fact.Falsemeans the answer is no.
True and False begin with capital letters and have no quotes. "True" would be text instead.