lib/facter/security_baseline/common/check_value_string.rb
def check_value_string(val, default)
  if val.nil? || val.empty?
    default
  else
    val
  end
end
# check a value and return a value depending on conditions
check a value and return a value depending on conditions
check a value and return a value depending on conditions
def check_value_string(val, default)
  if val.nil? || val.empty?
    default
  else
    val
  end
end
def check_value_string ( val , default ) if val . nil? || val . empty? default else val end end
check a value and return a value depending on conditions
check a value and return a value depending on conditions
val
default