def GetBoolValueFromString(s):
  """Returns True for true/1 strings, and False for false/0, None otherwise."""
  if s and s.lower() == 'true' or s == '1':
    return True
  elif s and s.lower() == 'false' or s == '0':
    return False
  else:
    return None