RockU If Statements

You are here:

If Statements

Presenter: Jon Edmiston Length: 3:49

 
The following Lava code examples are used in this video:

{% if CurrentPerson.ConnectionStatusValueId == 1 %}
    Welcome Member
{% elseif CurrentPerson.ConnectionStatusValueId == 2 or CurrentPerson.ConnectionStatusValueId == 3 %}
    Welcome {{CurrentPerson.NickName }} 
{% else %}    
    Welcome
{% endif %}
{% if 'Now' | Date:'H' %}
    Good Morning!
{% elseif hour < 18 %}
    Good Afternoon!
{% else %}    
    Good Evening!
{% endif %}
{% assign hour = 'Now' | Date:'H' %}

{% if hour <= 12 %}
    Good Morning!
{% elseif hour < 18 %}
    Good Afternoon!
{% else %}    
    Good Evening!
{% endif %}