Try like this:
#if (!$result.isEmpty()) ## do your normal template stuff here <script> PocketQuery.chart('BarChart'); </script> #else ## do what you want to if the result is empty <p>The result is empty so there is no chart</p> #end
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot