> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Function remove_constraints_if

Module: `noir_aztec::utils::remove_constraints`

```rust
pub fn remove_constraints_if<Env, T>(condition: bool, f: fn[Env]() -> T) -> T
```

Calls a function and returns its return value, removing any constraints associated with calling the function if `condition` is true, behaving as if the function was unconstrained.

Requires `condition` to be a compile time constant.
