I try to get content asset is online or not. I know that when we change online attribute to no from sandbox we won't see asset but currently asset is inside a modal, so that modal shows up with no content. That's why I try to check whether asset is online or not.
<div class="base_modal ${isOnline ? '' : 'd-none'}">
<iscontentasset aid="my_asset" />
</div>
I tried to call isOnline() function in isml but it is not worked.
Try this.
You can also try replacing "iscontentasset" with "isprint"