How to use if else condition in postman visualizer

Hi All,

Actually i want to write if else condition in my table data tag
the condition is such that if key value is null or document don’t have key
in the table it should show null.

Here testOne and test are column in my documents
My code in test
var template = `

<table bgcolor="white">
        <th>IMDB Rating</th>
        <th>Awards Wins<th>

    {{#each response}}
            if ({{testOne}}) {
                return (
            } else {
                return (


// Set visualizer
pm.visualizer.set(template, {
// Pass the response body parsed as JSON as data
response: pm.response.json().documents