Is it possible to add the if condition inside `${ ‘code here’ }` – Jquery
How can I insert the if condition inside of ${ } using jQuery. $('#inactive_list_body').append(` <tr> <td>${value['name']}</td> <td>${ if(value['status'] == 'false'){ value['identifier']}else{value['status']} }</td> // ^^^^ Here I need to add IF condition <td>${value['reason_without_or_inactive']}</td> </tr> `);