Correct Constraint Help

i only want the rule to fire when the automation command is pressed AND there is a number (for price) entered in the keypad. Ive added {NUMBERPAD} is not null, but even when the number pad doesnt have a number entered the rule still fires, even stranger the action is to add a misc item and set the price to whatever is entered in the numbepad which it does, however when nothing is entered in the number pad it add a price of 1.00

LOL

I thought the numberpad value was only entered when returned rather than if its sat in the field…

Could you not dual [?prompt] it? they get merged into one pop up which might work well.

if i type any amount in the numberpad field and press my misc item button it works perfect ill show screen shots below

It just takes empty numberpad as 1? very strange…

10.00 entered in numberpad

Press the misc item button and enter description in prompt, i enter test

Order with name test is added and price 10.00

so i only want the button to work when there is a value in the number pad field, still dont know where the 1 comes from that isnt set anywhere lol

As a temp solution could you set numberpad does not equal 1…

ILL TELL YOU WHAT IT IS!!!

We can use numberpad as multiplier right???
So makes sence it defaults to 1 as x1 qty :wink:

ahhhh

just tried does not equal 1 and that didnt work

HMMM, is {NUMBERPAD} correct? rather than [:Numberpad] on the rule constraint?

yep thats got it!! i knew itd be some variation of the tag i never get it right first time lol, thanks :slight_smile:

So was it using is not 1 or just is not null?

is not null works fine, so dont know what the 1 is all about lol

Think I got it here;

Guessing the constraint can see its null but the call for the value in actual use causes it to trigger as 1 as if it was 1x qty on order added… maybe…

yea that makes sense :slight_smile:

{:NUMBERPAD} would probably work as well.

im sure i tried that and it didnt work, although i may not have had the NULL bit set right when i tried that :slight_smile:

Both/either should work.

You could also use TN() on the LEFT side to ensure you get a value returned and compare it against zero (0) …