original_string: public function if($name, callable $callback)
      {
          $this->conditions[$name] = $callback;
  
          $this->directive($name, function ($expression) use ($name) {
              return $expression !== ''
                      ? "<?php if (\Illuminate\Support\Facades\Blade::check('{$name}', {$expression})): ?>"
                      : "<?php if (\Illuminate\Support\Facades\Blade::check('{$name}')): ?>";
          });
  
          $this->directive('else'.$name, function ($expression) use ($name) {
              return $expression !== ''
                  ? "<?php elseif (\Illuminate\Support\Facades\Blade::check('{$name}', {$expression})): ?>"
                  : "<?php elseif (\Illuminate\Support\Facades\Blade::check('{$name}')): ?>";
          });
  
          $this->directive('end'.$name, function () {
              return '<?php endif; ?>';
          });
      }
code: public function if($name, callable $callback)
      {
          $this->conditions[$name] = $callback;
  
          $this->directive($name, function ($expression) use ($name) {
              return $expression !== ''
                      ? "<?php if (\Illuminate\Support\Facades\Blade::check('{$name}', {$expression})): ?>"
                      : "<?php if (\Illuminate\Support\Facades\Blade::check('{$name}')): ?>";
          });
  
          $this->directive('else'.$name, function ($expression) use ($name) {
              return $expression !== ''
                  ? "<?php elseif (\Illuminate\Support\Facades\Blade::check('{$name}', {$expression})): ?>"
                  : "<?php elseif (\Illuminate\Support\Facades\Blade::check('{$name}')): ?>";
          });
  
          $this->directive('end'.$name, function () {
              return '<?php endif; ?>';
          });
      }
code_tokens: public function if ( $ name , callable $ callback ) { $ this -> conditions [ $ name ] = $ callback ; $ this -> directive ( $ name , function ( $ expression ) use ( $ name ) { return $ expression !== '' ? "<?php if (\Illuminate\Support\Facades\Blade::check('{$name}', {$expression})): ?>" : "<?php if (\Illuminate\Support\Facades\Blade::check('{$name}')): ?>" ; } ) ; $ this -> directive ( 'else' . $ name , function ( $ expression ) use ( $ name ) { return $ expression !== '' ? "<?php elseif (\Illuminate\Support\Facades\Blade::check('{$name}', {$expression})): ?>" : "<?php elseif (\Illuminate\Support\Facades\Blade::check('{$name}')): ?>" ; } ) ; $ this -> directive ( 'end' . $ name , function ( ) { return '<?php endif; ?>' ; } ) ; }
docstring: Register an "if" statement directive.
  
  @param  string  $name
  @param  callable  $callback
  @return void
docstring_tokens: Register an if statement directive .