Liquid Js conditional logic not working
# support
k
{% assign hour = "now" | date: "%H", "Asia/Kolkata" %} {% assign hour_int = hour | plus: 0 %} {% if hour_int < 12 %} गुड मॉर्निंग, {{customer_name}}! मेरा नाम Viraj है This is my conditional logic in my first message, it is reading the liquid js condition as it is, instead of reading the good morning or afternoon or evening prompt
k
Use single quotes in Liquid ('now'), chain | plus: 0 to convert the hour to an integer..
k
But it is reading the liquid js condition as a prompt instead of looking it as a condition
c
Fixed, will be in production soon.
3 Views