PetscBool3ToBool — PETSc 3.25.2 documentation

Skip to main content
`Ctrl`+`K`

# PetscBool3ToBool

Convert a `PetscBool3` to a `PetscBool`

## Synopsis

    #include <petscsystypes.h>
    PetscBool PetscBool3ToBool(PetscBool3 var)

No Fortran Support

## Note

Evaluates to `PETSC_TRUE` if `var` is `PETSC_BOOL3_TRUE`, and `PETSC_FALSE` otherwise (including when `var` is `PETSC_BOOL3_UNKNOWN`).

## See Also

`PetscBool`, `PetscBool3`, `PetscBoolToBool3()`

## Level

beginner

## Location

include/petscsystypes.h

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages