statement requires expression of scalar type ('void' invalid)
<p>I am getting warning message in red <code>statement requires expression of scalar type ('void' invalid)</code> at the if statement.</p>

<pre><code> - (void)displayviewsAction:(id)sender
{
    FirstViewController *viewController = [[FirstViewController alloc] init];
    viewController.view.frame = CGRectMake(0, 0, 320, 480);
    [self.view addSubview:viewController.view];
    [self.view addSubview:toolbar];

    if ([audioPlayer pause]){
        [timer invalidate];
    } else {
        self.timer = [NSTimer scheduledTimerWithTimeInterval:23 target:self selector:@selector(secondViewController) userInfo:nil repeats:NO];
    } 
    [viewController release];
}  
</code></pre>

<p>Any idea how to fix it.</p>

<p>Thanks for help.</p>
