On 09/11/2020 03:56 PM, Tim Düsterhus, WoltLab GmbH wrote:
We've had a bit of discussion regarding the naming of the converter. I
wanted to avoid calling it `if`, because then we could have stuff like this:
http-request set-var(txn.foo) bool(1),if(bar,baz)
which can easily be confused with:
http-request set-var(txn.foo) bool(1) if bar
Some other naming suggestions that came up:
- choice (my initial choice)
- ifor / if_or
- ifelse / if_else
- iftrue (with the<false> argument being optional)
Maybe something like this would be appropriate (IIF)?
https://en.wikipedia.org/wiki/IIf
--
Zaga <miros...@zagorac.name>
What can change the nature of a man?