- Code: Select all
if(P2SQUARECOUNT>P1SQUARECOUNT&&P2SQUARECOUNT>P3SQUARECOUNT&&P2SQUARECOUNT>P4SQUARECOUNT)
{
CreateActor("Shoot", "Needs More People", "view", "(none)", 160, 240, false);
}
else
if(P2SQUARECOUNT<P1SQUARECOUNT&&P2SQUARECOUNT>P3SQUARECOUNT&&P2SQUARECOUNT>P4SQUARECOUNT)
{
CreateActor("Shoot", "Needs More People", "view", "(none)", 160, 240, false);
}
This will only tell the engine if P2SQUARECOUNT is greater than the rest or lower than the rest. But I want to be able to check if just P3SQUARECOUNT is higher but the rest are lower etc.. without a huge code..?
is there a way to use "&&" better? like maybe, "||" or "&|"?
what exactly does this "||" mean?
Thanks to anyone that can help me!