Conditional
This is a composite generator.
Applies different generators to the value conditionally based on any value in the table.
For example, a Users table contains Name, Username, and Role columns. For the Username column, you can use a conditional generator to indicate that if the value of Role is something other than Test, then use the Character Scramble generator for the Username value. For Test users, the name is not masked.
Characteristics
Consistency | Determined by the selected generators. |
Linking | Determined by the selected generators. |
Differential privacy | Determined by the selected generators. |
Data-free | Determined by the selected generators. |
Allowed for primary keys | No |
Allowed for unique columns | Yes |
Uses format-preserving encryption (FPE) | No |
Privacy ranking |
|
Generator ID (for the API) |
How to configure
The generator consists of a list of options. Each option includes the required conditions and the generator to use if those conditions are met.
Setting the default generator
The generator always contains a Default option. The Default option is used if the value does not meet any of the conditions. To configure the Default option:
From the Default dropdown list, select the generator to use by default.
Configure the selected generator.
Adding a condition option
To add a condition option:
Click + Conditional Generator.
To add a condition:
Click + Condition.
From the column list, select the column for which to check the value.
Select the comparison type.
Enter the column value to check for.
To remove a condition, click the delete icon for the condition.
From the Generator dropdown list, select the generator to run on the current column if the conditions are met. You cannot select another composite generator.
Choose the configuration options for the selected generator.
Viewing and editing condition options
To view details for and edit a condition option, click the expand icon for that option.
Removing a condition option
To remove a condition option, click the delete icon for the option.
Last updated