I have an item renderer for a list with an image, label and a checkbox.
These are visible depending on the dataProvider property of the list.
E.g if an image is a premium image then display the premium lable.
The problem is i have a massive if statement, and this doesn't seem correct.
So how can i seperate the logic from the item renderer?
How many "ifs" do you consider numerous ? Since you are feeling a little iffy ( no pun intended ) about the number of if statements, it might help if you posted the code.showing your itemrenderer. That way we can hack away at some of the control statements, if that doesn't work, you might have to try something else ( pun not intended ).