I want to use a logic like this that does not work, why not working
var a = '1==2';
if( a )
{
alert(1);
} else {
alert(2);
}
My Code
var arr_logic = {};
arr_logic['rst_content_padding'] = ['rst_general_wrapper', '1==2'];
$.each(arr_logic, function(i, val) {
if (val[1]) {
alert(1);
} else {
alert(2);
}
});