Now the requirement is I want to display the button in the below code based on some condition am getting from .js file. I need to display button only in some cases and I should display the link in some cases. And in some cases I need to skip both button and link in the below code. So to achieve this kindly help me with method to use conditional statements in my .ctp file.
<span id=sourcingexit onclick="focusOnElement();">Sourcing Group Exit</span> <div id="myModal" class="modal"> <div class="modal-content"> <ul></ul> </div> </div> </div>