How to use an item as a value in a profile?

I want to use items as a lower and upper bounds values in the Range profile.
Is there any way to do it?

No. The only way to do this would be to use the SCRIPT transform with the transform profile. I’d recommend using the JS Scripting or jRuby as the language as it’s easiest to access other Items in those languages than Nashorn JS or Rules DSL. In both cases I believe you’d access the other Items the same as you would in a rule.

Are there any plans to allow to use items in place of values of corresponding types?

In the meantime I’ll follow your advice. Thank you.

No, there are no plans to add the ability to use Items in this way.