Everything About Nothing

3m
Share

Description

Lava testing results:

If == Null == Empty == ''
Is Null
{% assign tNull = null %}
✓
Variable Does Not Exist
{% if tDoesNotExist %}
✓
Empty
{% assign tEmpty = '' %}
✓ ✓ ✓
Has Value
{% assign tHasValue = 'Hello' %}
✓
Attribute Does Not Exist
{% assign attributeNotExists = CurrentPerson | Attribute:'Nope' %}
✓ ✓ ✓
Attribute Blank
{% assign attributeBlank = CurrentPerson | Attribute:'TestGroup' %}
✓ ✓ ✓
Null Person Property
{% if CurrentPerson.RecordStatusReasonValueId %}
✓
Empty Person Property
{% if CurrentPerson.MiddleName %}
✓ ✓ ✓
Invalid Person Property
{% if CurrentPerson.Nope %}
✓
Array With Two Items
2 Items
✓
Array With No Items
0 Items
✓ ✓ ✓
Dictionary With Items
1 Items
✓
Empty Dictionary
0 Items
✓ ✓ ✓
CurrentPerson is Null
null
✓

Share This Video:

Featured Videos

View all