Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 72443

Show variable within TWIG short form if/else statement with HTML

$
0
0
{{r.status == 'active' or 'scheduled' ? 'The order status is <a href="https://example.com/"> 
{{r.order}} : 'The order status is cancelled'</a>'

When using the line above it prints {{r.order}} instead of the value from the variable. How can I print the value?


Viewing all articles
Browse latest Browse all 72443

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>