Updated Adding a new operation (markdown)

GCHQDeveloper581 2026-07-04 17:03:27 +01:00
parent 7478e3ea9d
commit 27a4e0c72f

@ -64,6 +64,8 @@ Operation arguments (ingredients) can be set to any of the following types:
- Operation receives an object with two properties: `option` containing the user's dropdown selection, and `string` containing the input box contents.
- Particularly useful for arguments that can be specified in various different formats.
- See the [XOR](https://github.com/gchq/CyberChef/blob/master/src/core/operations/XOR.mjs) operation for an example of how this works.
10. `argSelector`
- `value` is an array of `name`, `on`, `off` triples. The user is presented with a dropdown selection box with each of the names as an option. `on` and `off` are arrays of argument numbers which are enabled/disabled when the corresponding option is selected. The ingredients are numbered according to their position in the `this.args[]` array. The name of the selected option is sent to the operation.
**Ingredient Validation**