RockU Assign Statement

You are here:

Assign Statement

Presenter: Jon Edmiston Length: 1:47

 
The following Lava code examples are used in this video:

{% assign hour = 'Now' | Date:'H' %}

{% if hour <= 12 %}
    Good Morning!
{% elseif hour < 18 %}
    Good Afternoon!
{% else %}    
    Good Evening!
{% endif %}
{% if 'Now' | Date:'H' %}
    Good Morning!
{% elseif hour < 18 %}
    Good Afternoon!
{% else %}    
    Good Evening!
{% endif %}