---
name: "PGAGetMutationOrCrossoverFlag"
section: "3"
platform: "linux"
package: "pgapack"
version: "1.0.0.1-3"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/PGAGetMutationOrCrossoverFlag/3"
---

# PGAGetMutationOrCrossoverFlag(3)

Returns true if mutation only occurs when crossover does not.

## NAME

PGAGetMutationOrCrossoverFlag - Returns true if mutation only occurs when crossover does not.

## INPUT PARAMETERS

- ctx

  \- context variable

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
int  PGAGetMutationOrCrossoverFlag(ctx)
PGAContext *ctx
```

## LOCATION

pga.c

## EXAMPLE

```
Example:
PGAContext *ctx;
int mutatetype;
:
mutatetype = PGAGetMutationOrCrossoverFlag(ctx);
switch (mutatetype) {
case PGA_TRUE:
printf("Only mutating strings not undergoing crossover0);
break;
case PGA_FALSE:
printf("Mutating strings only after crossover0);
break;
}
```
