how to use if else conditon on button press based on image of button?
<p>I am trying to use some logics on the base of button click.i use button as checkmark and when i click on this check mark the image of button changed into checked.png or unchecked.png.On that basis i use this code...</p>

<pre><code>if([UIImage imageNamed:@"checkbox_ticked.png"])
    {
        isActiveStr=[arrayPickerData objectAtIndex:17];
        NSLog(@" is active value is %@ ",isActiveStr);
        isActiveStr=nil;

    }
    else 
    {
        NSLog(@"no vlaue send");
        isActiveStr=[[NSMutableString alloc]initWithString:@"1"];
        NSLog(@" is active value %@",isActiveStr);
    }
</code></pre>

<p>Now i dont know how to use the else condtion...i run this code but it always run only if codition.It never goes in else conditon.I want that i codtion is true it goes in if part and when condition is false it goes in else part.And how i use image property of button to check the condition.</p>
