if (eq value_type 'boolean')
  if project_instance_action.boolean_value
    i.check.square.outline.icon
  else
    i.square.outline.value-missing.icon
else if (eq value_type 'date')
  if project_instance_action.date_value
    = format-date project_instance_action.date_value format=globals.date_formatting
  else
    i.calendar.value-missing.icon
else if (eq value_type 'timestamp')
  if project_instance_action.timestamp_value
    = format-date project_instance_action.timestamp_value format=globals.time_formatting
  else
    i.wait.value-missing.icon
else if (eq value_type 'number')
  if (or (eq project_instance_action.number_value 0) project_instance_action.number_value)
    = project_instance_action.number_value
  else
    i.hashtag.value-missing.icon
else if (eq value_type 'select')
  if project_instance_action.string_value
    = project_instance_action.string_value
  else
    i.list.value-missing.icon
else if (eq value_type 'string')
  if project_instance_action.string_value
    = project_instance_action.string_value
  else
    i.terminal.value-missing.icon
else if (eq value_type 'text')
  if project_instance_action.text_value
    if (gt project_instance_action.text_value.length 14)
      = ui-markdown-popup tagName='i' class='sticky note icon' markdown=project_instance_action.text_value
    else
      = project_instance_action.text_value
  else
    i.sticky.note.outline.value-missing.icon
else
  span= value_type
  i.red.warning.circle.icon
  = project_instance_action.value_display
