can anyone help please

can anyone help please

Hello,
 
jQuery(e).find( "a" )[ parseInt(data_selected[i]) ? jQuery( this ).addClass( "selected" ) : jQuery( this ).addClass( "" ) ]();

how to write such statment properly

it is search for A tag and where data_selected[i] is true addClass 

data_selected is array of states (010010010101) and "i" is A tag number on the list

Thanks