When using i4w_compare it is purely a text string or number comparison.
Therefore you will need to ensure that the items being compared are presented in the correct way for such a comparison to function as wished.
When comparing dates we would recommend they are converted into seconds from the epoch i.e. format=”U”
We cannot tell you whether your code will work as we don’t know how you have stored _ContentExpirationDate or what Infusionsoft field type is being used.
However this should cover all eventualities assuming _ContentExpirationDate is in a PHP recognised date format.
[i4w_compare value1='[i4w_date date=”[i4w_db__ContentExpirationDate]” format=”U”]’ cmp=’LE’ value2='[i4w_postdate format=”U”]’]
YOU CAN SEE THIS! HOORAY
[ELSE_compare]
[i4w_redirect redir=’https://trueproductions.com’ autorun=’1′]
[/i4w_compare]
or
{{:i4w_compare value1='[i4w_date date='[i4w_db__ContentExpirationDate]’ format=’YmdHis’]’ cmp=’GT’ value2='[i4w_postdate format=’YmdHis’]’:}}
[i4w_redirect redir=’/subscription-content-not-available/’ autorun=’1′]
{{:/i4w_compare:}}
