Using RPL for scheduling dynamic content
I'm looking to see if it's possible to use RPL conditionals to create a pseudo scheduling function for dynamic content by comparing the current date to a future date, and setting the dynamic value accordingly.
Dynamic Variable: promo_active
<#if .now?string("yyyy")?hex == "2017"?hex && .now?string("D")?hex <= "357"?hex>
active
<#else>
inactive
</#if>
I'm getting a runtime error, can't use <= on strings but I thought ?hex converted the string? Any suggestions?
Thanks,
Patrick
0