Maps a value to the ‘to’ value based on the comparator.
Maps a value to the “to” value based on the comparator. You set a value to compare against, the replacement to use when it matches, and the comparator that decides what counts as a match. When the incoming value matches, it is swapped for the replacement; when it does not match, the original value passes through unchanged. This is the simplest building block for one-off replacements, such as turning a single status code into your own wording while leaving every other value untouched.