#pragma semicolon 1
#pragma newdecls required
static const int VALUES[] = {9, 20, 31};
public void OnPluginStart()
{
PrintToServer("\nTesting checking equality expressions:");
bool fist, second;
for(int i; i < sizeof(VALUES); i++)
{
PrintToServer("%3i) 10 < %i < 30 is %s", i+1, VALUES[i], (fist = (10 < VALUES[i] < 30)) ? "true" : "false");
PrintToServer(" 10 < %i && %i < 30 is %s", VALUES[i], VALUES[i], (second = (10 < VALUES[i] && VALUES[i] < 30)) ? "true" : "false");
PrintToServer(" The expressions are equivalent: %s", fist == second ? "true" : "false");
}
PrintToServer("Test ended\n");
}