I am writing a script to render data based on a flag. I the flag is false the data is pushed onto an array and is rendered later. The below is the code,
rende