I'm going crazy about this error. This is my Code:
if ( $result != "Ball In Play" ) {
// If Pitch Is A Ball
if ( $result == "Ball" ) {
$balls += 1;
// Check If Batter Is Walked
if ( $balls == 4 ) {
$this->concludeAtBat( "Walk", "" );
}
// Update Balls Count
update_post_meta( $this->ID, "balls", $balls );
}
I'm getting this
Error: Parse error: syntax error, unexpected '$result' (T_VARIABLE) in /Applications/XAMPP/xamppfiles/htdocs/.../file.php on line 261
Line 261 is:
if ( $result == ball ){
Can somebody tell me what I'm missing? Thank you for your help.