Question: I have a pretty easy route where I pickup files from a directory and send it to a bean:

`from("file:/mydir?delete=true").bean(MyProcessor.class);`

It can happen that an exception occures in MyProcessor.class and so I want to delay the processing of that file again. How can I setup a redelivery for that as I tried already different things with

`onException().redeliveryDelay(10000);`

but it didn't work and right after the exception the same file gets processed again.

Answer: 
Something like this:

```
 public IActionResult TestingSample(int A, int B) => A > B && B != 0 
     ? $"{2 + (long)A * B}"   // "correct"
     : $"{2L * A + B}";       // "wrong" 

```

here if  `A > B && B != 0` we have *correct* arguments and we return `2 + A * B`, othevise arguments are *wrong* and we return `2 + A * B`.

I've introduced `long` to fight with possible integer overflow (when, say, `A == 2_000_000`, `A = 1_000_000`)
Why don't you have a single string result? if else will only return one

```
        string result = string.Empty;
        if (A > B && B != 0)
        {
            int cal = 2 + A * B;
            result = cal.ToString();
            return result;
        }

        int cal = 2 * A + B;
        result = cal.ToString();
        return result;

```