Well you may need to read my post again.
The correct syntax for an if branch is:
Code:
if(condition)
{
  instruction;
}



so please write:
Code:
if(eBall.z < -100)
{
  eBall.z = 500;
}