In my custom OP, I am trying to create a named menu with items “Positive”, “Negative” and provide values like 1, and -1, respectively. I tried using an Integer item in the parameters tab of the Edit Operator Type properties dialog, with a defined menu and tokens with 1 and -1, but when I use it in the expressions, it doesn't work.
If I turn it into a float, it works but then I lose the menu,
Thanks, here is a simple case that shows the problem. The line's distance is multiplied by my menu item value but it seems the value I get from the menu is the order of them (index), instead of my tokens.