/* Evaluate if the result is a non-zero value. */
BOOLEAN IsHiiValueTrue(IN EFI_HII_VALUE *Result)
/* Evaluate if the result is a non-zero value. */
BOOLEAN IsHiiValueTrue(IN EFI_HII_VALUE *Result)
{
  switch (Result->Type) {
    case EFI_IFR_TYPE_BOOLEAN:
      return Result->Value.b;
    case EFI_IFR_TYPE_NUM_SIZE_8:
      return (BOOLEAN)(Result->Value.u8 != 0);
    case EFI_IFR_TYPE_NUM_SIZE_16:
      return (BOOLEAN)(Result->Value.u16 != 0);
    case EFI_IFR_TYPE_NUM_SIZE_32:
      return (BOOLEAN)(Result->Value.u32 != 0);
    case EFI_IFR_TYPE_NUM_SIZE_64:
      return (BOOLEAN)(Result->Value.u64 != 0);
    default:
      return FALSE;
  }
}