fix Issue 11818 - Ternary operator not allowed in a value parameter anymore
Merge pull request #3033 from 9rnsr/fix11818

[REG2.064] Issue 11818 - Ternary operator not allowed in a value parameter anymore