Hi there! It was my understanding that conditionals can work with shortcodes.
I have shortcodes that render either the numerical 1 or 0. i am trying to use conditionals inside a looper.
So i am trying to get the elements inside the looper to either show or not show using

or

I can confirm that the shortcode is working as expected because i have placed it inside the elements themselves in text and i see it render either 0 or 1 exactly where expected. But when applied to the conditional (inside the looper) it does not work.
Interestingly, when i try to ‘hack’ visibility via css by applying a class visibility-[myshortcode] it always renders visibility-0, despite the shortcode in the text showing a 1. So this suggests shortcodes aren’t processed correctly inside a conditional if inside a looper? How can i fix this?