You are not getting the value false, and displaying the else block. It was passed by the url and only executes the if block of true value. Someone gives me a help, thanks in advance. Here is the code below:
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<?php $logado = $_GET["logado"]; ?>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<title>IF Alternativo</title>
</head>
<body>
<?php if($logado) : ?>
</body>
</html> <h1>Bem vindo ao sistema!</h1>
<?php else : ?>
<h1>Faça o login</h1>
<form>
<input type="text" placeholder="Login" name="login"/>
<input type="password" placeholder="Senha" name="senha"/><br/>
<input type="submit" value="Entrar">
</form>
<?php endif; ?>
</body>
</html>